Skip to content

Commit

Permalink
feat(themes): Adding a new paper theme to the customizer tool and mor…
Browse files Browse the repository at this point in the history
…e features to that grid.
  • Loading branch information
Portugal, Marcelo authored and Portugal, Marcelo committed Mar 6, 2017
1 parent f3c0386 commit 30f6492
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion misc/site/customizer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h1 class="text-center">Grid Customizer</h2>
{{ css }}
</style>

<div class="grid" ui-grid="gridOptions"></div>
<div class="grid" ui-grid="gridOptions" ui-grid-cellNav ui-grid-selection></div>
</div>
</div>
<div class="col-xs-6 col-md-8">
Expand Down
14 changes: 14 additions & 0 deletions misc/site/customizer/themes/paper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"variables": {
"@borderColor": "#ddd",
"@headerBackgroundColor": "#fff",
"@headerGradientStart": "#fff",
"@headerGradientStop": "#fff",
"@headerVerticalBarColor": "#fff",
"@rowColorEven": "#f9f9f9",
"@rowColorOdd": "#fff",
"@rowSelected": "#f5f5f5",
"@selectedColor": "#eee"
},
"customLess": ".ui-grid { color: #333; }\n\n.ui-grid-header { border-bottom-width: 2px; }\n\n.ui-grid-menu .ui-grid-menu-inner ul li:not(:last-child) > button {border:none;}\n\n.ui-grid-menu .ui-grid-menu-inner ul li button.ui-grid-menu-item-active {-webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;}\n\n.ui-grid-menu .ui-grid-menu-inner ul li button:hover, .ui-grid-menu .ui-grid-menu-inner ul li button:focus {-webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;background-color: #ddd;}"
}
3 changes: 2 additions & 1 deletion misc/site/customizer/themes/themes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"autumn",
"paper",
"sky"
]
]
7 changes: 5 additions & 2 deletions misc/site/js/customizer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {

var app = angular.module('customizer', ['ui.grid']);
var app = angular.module('customizer', ['ui.grid', 'ui.grid.cellNav', 'ui.grid.selection']);

app.run(function($log, $rootScope, $http) {
});
Expand Down Expand Up @@ -39,7 +39,10 @@ app.controller('Main', function($log, $http, $scope, less, Theme, FILES) {
);
}

$scope.gridOptions = {};
$scope.gridOptions = {
enableFiltering: true,
enableGridMenu: true
};
$http.get(FILES.DATA_100)
.success(function(data) {
$scope.gridOptions.data = data;
Expand Down

0 comments on commit 30f6492

Please sign in to comment.