diff --git a/Build/CommonAssemblyInfo.cs b/Build/CommonAssemblyInfo.cs
index 9a500bd..3264e0c 100644
--- a/Build/CommonAssemblyInfo.cs
+++ b/Build/CommonAssemblyInfo.cs
@@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("2.5.0")]
-[assembly: AssemblyFileVersion("2.5.0")]
-//[assembly: AssemblyInformationalVersion("2.5-filters")]
+[assembly: AssemblyVersion("3.0.0")]
+[assembly: AssemblyFileVersion("3.0.0")]
+[assembly: AssemblyInformationalVersion("3.0-alpha")]
diff --git a/Griddly.Mvc/Griddly.Mvc.csproj b/Griddly.Mvc/Griddly.Mvc.csproj
index a169fbc..3b3ad0a 100644
--- a/Griddly.Mvc/Griddly.Mvc.csproj
+++ b/Griddly.Mvc/Griddly.Mvc.csproj
@@ -55,29 +55,23 @@
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.Helpers.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.Helpers.dll
-
- True
- ..\packages\Microsoft.AspNet.Mvc.4.0.30506.0\lib\net40\System.Web.Mvc.dll
+
+ ..\packages\Microsoft.AspNet.Mvc.5.2.4\lib\net45\System.Web.Mvc.dll
-
- True
- ..\packages\Microsoft.AspNet.Razor.2.0.20710.0\lib\net40\System.Web.Razor.dll
+
+ ..\packages\Microsoft.AspNet.Razor.3.2.4\lib\net45\System.Web.Razor.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Deployment.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Deployment.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Razor.dll
diff --git a/Griddly.Mvc/GriddlySettings.cs b/Griddly.Mvc/GriddlySettings.cs
index bf0a14a..be9b422 100644
--- a/Griddly.Mvc/GriddlySettings.cs
+++ b/Griddly.Mvc/GriddlySettings.cs
@@ -12,9 +12,28 @@ namespace Griddly.Mvc
{
public abstract class GriddlySettings
{
- public static string DefaultClassName = null;
- public static string DefaultTableClassName = "table table-bordered table-hover";
- public static string DefaultButtonClassName = null;
+ public static class Css
+ {
+ public static string GriddlyDefault = null;
+ public static string TableDefault = "table table-bordered table-hover";
+ public static string ButtonDefault = "btn btn-default";
+
+ public static class Icons
+ {
+ public static string Calendar = "glyphicon glyphicon-calendar";
+ public static string Remove = "glyphicon glyphicon-remove";
+ public static string ListMultipleSelected = "glyphicon glyphicon-ok";
+ public static string ListSingleSelected = "glyphicon glyphicon-record";
+ public static string Check = "glyphicon glyphicon-check";
+ public static string Filter = "glyphicon glyphicon-filter";
+ public static string Clear = "glyphicon glyphicon-ban-circle";
+ }
+ }
+
+ public static string DefaultClassName { get => Css.GriddlyDefault; set => Css.GriddlyDefault = value; }
+ public static string DefaultTableClassName { get => Css.TableDefault; set => Css.TableDefault = value; }
+ public static string DefaultButtonClassName { get => Css.ButtonDefault; set => Css.ButtonDefault = value; }
+
public static string ButtonTemplate = "~/Views/Shared/Griddly/BootstrapButton.cshtml";
public static string ButtonListTemplate = "~/Views/Shared/Griddly/ButtonStrip.cshtml";
public static HtmlString BoolTrueHtml = null;
@@ -24,6 +43,7 @@ public abstract class GriddlySettings
//public static FilterMode? DefaultAllowedFilterModes = FilterMode.Inline;
public static bool DefaultShowRowSelectCount = true;
public static bool ExportCurrencySymbol = true;
+ public static bool IsBootstrap4 = false;
public static Func IconTemplate = null;
public static Func DefaultFooterTemplate = null;
@@ -60,6 +80,20 @@ public GriddlySettings()
ShowRowSelectCount = DefaultShowRowSelectCount;
}
+ public static void ConfigureBoostrap4Defaults()
+ {
+ IsBootstrap4 = true;
+ Css.ButtonDefault = "btn btn-outline-secondary";
+
+ Css.Icons.Calendar = "fa fa-calendar-alt";
+ Css.Icons.Remove = "fa fa-times";
+ Css.Icons.ListMultipleSelected = "fa fa-check";
+ Css.Icons.ListSingleSelected = "fa fa-dot-circle";
+ Css.Icons.Check = "fa fa-check-square-o";
+ Css.Icons.Filter = "fa fa-filter";
+ Css.Icons.Clear = "fa fa-ban";
+ }
+
public string[] DefaultRowIds { get; set; }
public string IdProperty { get; set; }
public string Title { get; set; }
diff --git a/Griddly.Mvc/packages.config b/Griddly.Mvc/packages.config
index 2301976..7df6e57 100644
--- a/Griddly.Mvc/packages.config
+++ b/Griddly.Mvc/packages.config
@@ -3,9 +3,9 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/Griddly/Griddly.csproj b/Griddly/Griddly.csproj
index b8d6336..8f30f97 100644
--- a/Griddly/Griddly.csproj
+++ b/Griddly/Griddly.csproj
@@ -1,5 +1,7 @@
+
+
Debug
@@ -24,6 +26,8 @@
true
+
+
true
@@ -50,6 +54,9 @@
..\packages\FFaker.Net.1.1.0.0\lib\net40\FFaker.Net.dll
+
+ ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
+
False
@@ -65,33 +72,27 @@
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.Helpers.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.Helpers.dll
-
- True
- ..\packages\Microsoft.AspNet.Mvc.4.0.30506.0\lib\net40\System.Web.Mvc.dll
+
+ ..\packages\Microsoft.AspNet.Mvc.5.2.4\lib\net45\System.Web.Mvc.dll
False
..\packages\Microsoft.AspNet.Web.Optimization.1.1.2\lib\net40\System.Web.Optimization.dll
-
- True
- ..\packages\Microsoft.AspNet.Razor.2.0.20710.0\lib\net40\System.Web.Razor.dll
+
+ ..\packages\Microsoft.AspNet.Razor.3.2.4\lib\net45\System.Web.Razor.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Deployment.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Deployment.dll
-
- True
- ..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll
+
+ ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Razor.dll
@@ -316,6 +317,8 @@
This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
-
+
@@ -15,6 +15,7 @@
+
@@ -61,6 +62,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Griddly/packages.config b/Griddly/packages.config
index ebe6603..18c95f7 100644
--- a/Griddly/packages.config
+++ b/Griddly/packages.config
@@ -5,11 +5,13 @@
-
-
+
+
-
+
+
+