Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit c0cf0a8

Browse files
committed
docs: add Header/Footer Slots documentation
1 parent 72ebed8 commit c0cf0a8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* [Grid Menu](grid-functionalities/Grid-Menu.md)
6060
* [Grid State & Presets](grid-functionalities/Grid-State-&-Preset.md)
6161
* [Grouping & Aggregators](grid-functionalities/grouping-and-aggregators.md)
62+
* [Header & Footer Slots](grid-functionalities/header-footer-slots.md)
6263
* [Header Menu & Header Buttons](grid-functionalities/Header-Menu-&-Header-Buttons.md)
6364
* [Infinite Scroll](grid-functionalities/infinite-scroll.md)
6465
* [Pinning (frozen) of Columns/Rows](grid-functionalities/frozen-columns-rows.md)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Description
2+
You can add Header and/or Footer to your grid by using `ng-template` within your `angular-slickgrid` component, it's as simple as that. Using these slots also has the advantage of being contained in the same container making them the same width as the grid container.
3+
4+
### Demo
5+
6+
[Demo](https://ghiscoding.github.io/Angular-Slickgrid/#/header-footer) / [Demo Component](https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/examples/grid-header-footer.component.ts)
7+
8+
### Basic Usage
9+
10+
##### Component
11+
12+
```html
13+
<angular-slickgrid gridId="grid1" [columnDefinitions]="columnDefinitions" [gridOptions]="gridOptions" [dataset]="dataset">
14+
<ng-template #slickgridHeader>
15+
<h3>Grid with header and footer slot</h3>
16+
</ng-template>
17+
18+
<ng-template #slickgridFooter>
19+
<custom-footer></custom-footer>
20+
</ng-template>
21+
</angular-slickgrid>
22+
```

0 commit comments

Comments
 (0)