-
-
Notifications
You must be signed in to change notification settings - Fork 19
Multiple Column Header Rows (3 rows)
Aurelia-Slickgrid by default will use 2 rows to display each Column Headers, in some cases you might want to change that.
If you use SASS, you can simply change the $slick-header-row-count
variable and you're good to go. However, please note that this affects all your grids. If that is not what you want then keep reading.
Example:
$slick-header-row-count: 2;
@import '../node_modules/@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-bootstrap.scss';
In the case that you want to change the number of rows used to display each Column Headers, you will have to use a little bit more SASS code and the gridId
of your grid.
For example, let say your grid as the gridId
of mygrid
, with the following code
<aurelia-slickgrid
grid-id="mygrid"
column-definitions.bind="columnDefinitions"
grid-options.bind="gridOptions"
dataset.bind="dataset">
</aurelia-slickgrid>
You have to copy the id mygrid
into the SASS code shown below (replace mygrid
to your need). You also need to adjust the height in pixels, for 3 rows 55px
seems to be a good number to use. You can also move the sort indicators as shown below.
#slickGridContainer-mygrid {
.slickgrid-container .slick-header-columns {
.slick-header-column {
height: 55px;
.slick-sort-indicator, .slick-sort-indicator-numbered {
top: 40px;
}
}
}
}
Contents
- Aurelia-Slickgrid Wiki
- Installation
- Styling
- Interfaces/Models
- Testing Patterns
- Column Functionalities
- Global Grid Options
- Localization
- Events
- Grid Functionalities
- Auto-Resize / Resizer Service
- Resize by Cell Content
- Add/Delete/Update or Highlight item
- Dynamically Change Row CSS Classes
- Column Picker
- Composite Editor Modal
- Context Menu
- Custom Tooltip
- Excel Copy Buffer
- Export to Excel
- Export to File (CSV/Txt)
- Grid Menu
- Grid State & Presets
- Grouping & Aggregators
- Header Menu & Header Buttons
- Header Title Grouping
- Pinning (frozen) of Columns/Rows
- Row Colspan
- Row Detail
- Row Selection
- Tree Data Grid
- SlickGrid & DataView objects
- Addons (controls/plugins)
- Backend Services