Skip to content

Commit 30f6492

Browse files
Portugal, MarceloPortugal, Marcelo
Portugal, Marcelo
authored and
Portugal, Marcelo
committed
feat(themes): Adding a new paper theme to the customizer tool and more features to that grid.
1 parent f3c0386 commit 30f6492

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

misc/site/customizer/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h1 class="text-center">Grid Customizer</h2>
140140
{{ css }}
141141
</style>
142142

143-
<div class="grid" ui-grid="gridOptions"></div>
143+
<div class="grid" ui-grid="gridOptions" ui-grid-cellNav ui-grid-selection></div>
144144
</div>
145145
</div>
146146
<div class="col-xs-6 col-md-8">
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"variables": {
3+
"@borderColor": "#ddd",
4+
"@headerBackgroundColor": "#fff",
5+
"@headerGradientStart": "#fff",
6+
"@headerGradientStop": "#fff",
7+
"@headerVerticalBarColor": "#fff",
8+
"@rowColorEven": "#f9f9f9",
9+
"@rowColorOdd": "#fff",
10+
"@rowSelected": "#f5f5f5",
11+
"@selectedColor": "#eee"
12+
},
13+
"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;}"
14+
}
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
22
"autumn",
3+
"paper",
34
"sky"
4-
]
5+
]

misc/site/js/customizer.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function() {
22

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

55
app.run(function($log, $rootScope, $http) {
66
});
@@ -39,7 +39,10 @@ app.controller('Main', function($log, $http, $scope, less, Theme, FILES) {
3939
);
4040
}
4141

42-
$scope.gridOptions = {};
42+
$scope.gridOptions = {
43+
enableFiltering: true,
44+
enableGridMenu: true
45+
};
4346
$http.get(FILES.DATA_100)
4447
.success(function(data) {
4548
$scope.gridOptions.data = data;

0 commit comments

Comments
 (0)