Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ import { DataTableSummaryRowComponent } from './summary/summary-row.component';
[rows]="rows"
[columns]="columns"
[template]="summaryRowTemplate()"
[animate.enter]="summaryRowAnimateEnter()"
[animate.leave]="summaryRowAnimateLeave()"
/>
}
<ng-template
Expand Down Expand Up @@ -242,6 +244,8 @@ import { DataTableSummaryRowComponent } from './summary/summary-row.component';
[rows]="rows"
[columns]="columns"
[template]="summaryRowTemplate()"
[animate.enter]="summaryRowAnimateEnter()"
[animate.leave]="summaryRowAnimateLeave()"
/>
}
}
Expand Down Expand Up @@ -295,6 +299,8 @@ export class DataTableBodyComponent<TRow extends Row = any> implements OnInit, O
readonly summaryPosition = input.required<string>();
readonly summaryHeight = input.required<number>();
readonly summaryRowTemplate = input<TemplateRef<void>>();
readonly summaryRowAnimateEnter = input<string>();
readonly summaryRowAnimateLeave = input<string>();
readonly rowDraggable = input<boolean>();
readonly rowDragEvents = input.required<OutputEmitterRef<DragEventData>>();
readonly disableRowCheck = input<(row: TRow) => boolean | undefined>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
[summaryHeight]="summaryHeight()"
[summaryPosition]="summaryPosition()"
[summaryRowTemplate]="summaryRowDirective()?.template"
[summaryRowAnimateEnter]="summaryRowAnimateEnter()"
[summaryRowAnimateLeave]="summaryRowAnimateLeave()"
[verticalScrollVisible]="verticalScrollVisible"
[ariaRowCheckboxMessage]="messages().ariaRowCheckboxMessage ?? 'Select row'"
[ariaGroupHeaderCheckboxMessage]="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,18 @@ export class DatatableComponent<TRow extends Row = any>
*/
readonly summaryPosition = input('top');

/**
* CSS class to apply when the summary row enters (appears).
* Use this to customize the enter animation.
*/
readonly summaryRowAnimateEnter = input<string>();

/**
* CSS class to apply when the summary row leaves (disappears).
* Use this to customize the leave animation.
*/
readonly summaryRowAnimateLeave = input<string>();

/**
* A function you can use to check whether you want
* to disable a row. Example:
Expand Down
Loading