Skip to content

Commit

Permalink
slots added
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Dec 5, 2024
1 parent 102dbe7 commit d0daa8d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 230 files
2 changes: 1 addition & 1 deletion packages/angular
2 changes: 1 addition & 1 deletion packages/react
Submodule react updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue2
Submodule vue2 updated 2 files
+1 −1 demo/package.json
+2 −2 package.json
2 changes: 1 addition & 1 deletion packages/vue3
Submodule vue3 updated 2 files
+2 −2 demo/package.json
+2 −2 package.json
4 changes: 4 additions & 0 deletions src/components/revoGrid/revo-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ import { SortingConfig } from 'src/plugins/sorting/sorting.types';
* @slot data-{column-type}-{row-type}. @example data-rgCol-rgRow - main data slot. Applies extra elements in <revogr-data />.
* @slot focus-{column-type}-{row-type}. @example focus-rgCol-rgRow - focus layer for main data. Applies extra elements in <revogr-focus />.
* @slot viewport - Viewport slot.
* @slot header - Header slot.
* @slot footer - Footer slot.
*/
@Component({
tag: 'revo-grid',
Expand Down Expand Up @@ -1691,6 +1693,7 @@ export class RevoGridComponent {
{this.hideAttribution ? null : (
<revogr-attribution class="attribution" />
)}
<slot name="header" />
<div
class="main-viewport"
onClick={(e: MouseEvent) => {
Expand Down Expand Up @@ -1722,6 +1725,7 @@ export class RevoGridComponent {
onScrollvirtual={e => this.scrollingService.proxyScroll(e.detail)}
/>
<revogr-extra ref={el => (this.extraService = el)} nodes={this.extraElements} />
<slot name="footer" />
</Host>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export * from './filter/filter.plugin';
export * from './groupingColumn/columnGroupsRenderer';
export * from './groupingColumn/headerGroupRenderer';
export * from './groupingRow/grouping.row.plugin';
export * from './groupingRow/grouping.service';
export * from './moveColumn/column.drag.plugin';
export * from './sorting/sorting.plugin';
export * from './sorting/sorting.sign';
Expand Down

0 comments on commit d0daa8d

Please sign in to comment.