You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
By default there is no command for toggling the Dark Mode from the Grid Menu, however you can show the command at any time via the following settings:
69
+
70
+
```ts
71
+
exportclassMyDemo {
72
+
isDarkModeEnabled =false;
73
+
74
+
defineGrid() {
75
+
this.gridOptions= {
76
+
darkMode: this.isDarkModeEnabled,
77
+
gridMenu: {
78
+
hideToggleDarkModeCommand: false, // hidden by default
79
+
80
+
// you can optionally add extra command to toggle your own page styling as well
81
+
onCommand: (_, args) => {
82
+
// ...
83
+
},
84
+
85
+
// you can also change the icon and/or command name
86
+
iconToggleDarkModeCommand: 'fa fa-moon-o',
87
+
commandLabels: {
88
+
toggleDarkModeCommand: 'Toggle Dark Mode',
89
+
},
90
+
}
91
+
};
92
+
}
93
+
}
94
+
```
95
+
67
96
### Tweaking Some Colors
68
97
69
98
The Dark Mode Theme was created by setting a few CSS variables, in some cases you might need to tweak some of these variables. Take a look at the Slickgrid-Universal [CSS variables](https://github.com/ghiscoding/slickgrid-universal/blob/670946dcedd330a70d2e88127a0042474e7a5348/packages/common/src/styles/_variables.scss#L976-L985) to see which variables were reassigned. Also note that if you're using other Themes like Material or Salesforce, then there's also other variables that are set (see [Material variables](https://github.com/ghiscoding/slickgrid-universal/blob/670946dcedd330a70d2e88127a0042474e7a5348/packages/common/src/styles/_variables-theme-material.scss#L159-L189) or [Salesforce variables](https://github.com/ghiscoding/slickgrid-universal/blob/670946dcedd330a70d2e88127a0042474e7a5348/packages/common/src/styles/_variables-theme-salesforce.scss#L202-L219))
subTitle=`Composite Editor allows you to Create, Clone, Edit, Mass Update & Mass Selection Changes inside a nice Modal Window.
90
90
<br>The modal is simply populated by looping through your column definition list and also uses a lot of the same logic as inline editing (see <a href="https://ghiscoding.gitbook.io/angular-slickgrid/grid-functionalities/composite-editor-modal" target="_blank">Composite Editor - Wiki</a>.)`;
it.skip('should be able to toggle Sorting functionality (disable) and expect all header menu Sorting commands to be hidden and also not show Sort hint while hovering a column',()=>{
195
+
it('should be able to toggle Sorting functionality (disable) and expect all header menu Sorting commands to be hidden and also not show Sort hint while hovering a column',()=>{
196
196
constexpectedFullHeaderMenuCommands=['Resize by Content','','Sort Ascending','Sort Descending','','Remove Filter','Remove Sort','Hide Column'];
it.skip('should be able to toggle Sorting functionality (re-enable) and expect all Sorting header menu commands to be hidden and also not show Sort hint while hovering a column',()=>{
244
+
it('should be able to toggle Sorting functionality (re-enable) and expect all Sorting header menu commands to be hidden and also not show Sort hint while hovering a column',()=>{
245
245
constexpectedFullHeaderMenuCommands=['Resize by Content','','Sort Ascending','Sort Descending','','Remove Filter','Remove Sort','Hide Column'];
it.skip('should be able to click disable Sorting functionality button and expect all Sorting commands to be hidden and also not show Sort hint while hovering a column',()=>{
289
+
it('should be able to click disable Sorting functionality button and expect all Sorting commands to be hidden and also not show Sort hint while hovering a column',()=>{
290
290
constexpectedFullHeaderMenuCommands=['Resize by Content','','Sort Ascending','Sort Descending','','Remove Filter','Remove Sort','Hide Column'];
it.skip('should be able to click disable Filter functionality button and expect all Filter commands to be hidden and also not show Sort hint while hovering a column',()=>{
317
+
it('should be able to click disable Filter functionality button and expect all Filter commands to be hidden and also not show Sort hint while hovering a column',()=>{
318
318
constexpectedFullHeaderMenuCommands=['Resize by Content','','Sort Ascending','Sort Descending','','Remove Filter','Remove Sort','Hide Column'];
319
319
320
320
cy.get('[data-test="disable-filters-btn"]').click().click();// even clicking twice should have same result
it.skip('should open Column Picker and show the "Duration" column back to visible and expect it to have kept its position after toggling filter/sorting',()=>{
364
+
it('should open Column Picker and show the "Duration" column back to visible and expect it to have kept its position after toggling filter/sorting',()=>{
365
365
// first 2 cols are hidden but they do count as li item
0 commit comments