Skip to content

Commit

Permalink
Update DataView interface to reflect current configuration (#17735)
Browse files Browse the repository at this point in the history
This interface is responsible for the DataView API documentation, which is still referring to previous, and now obsolete, versions.
  • Loading branch information
taxpayer authored Feb 21, 2025
1 parent 2356621 commit 41bccc6
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions packages/primeng/src/dataview/dataview.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,33 +92,25 @@ export interface DataViewLayoutChangeEvent {
*/
export interface DataViewTemplates {
/**
* Custom list item template.
* @param {Object} context - data of the item.
* Custom list template.
* @param {Object} context - data of the DataView.
*/
listItem(context: {
list(context: {
/**
* Row data.
* Rows data.
*/
$implicit: any;
/**
* Row index.
*/
rowIndex: number;
}): TemplateRef<{ $implicit: any; rowIndex: number }>;
}): TemplateRef<{ $implicit: any }>;
/**
* Custom grid item template.
* @param {Object} context - data of the item.
* Custom grid template.
* @param {Object} context - data of the DataView.
*/
gridItem(context: {
grid(context: {
/**
* Row data.
* Rows data.
*/
$implicit: any;
/**
* Row index.
*/
rowIndex: number;
}): TemplateRef<{ $implicit: any; rowIndex: number }>;
}): TemplateRef<{ $implicit: any }>;
/**
* Custom paginator left template.
* @param {Object} context - paginator state.
Expand Down Expand Up @@ -152,7 +144,7 @@ export interface DataViewTemplates {
/**
* Custom empty message template.
*/
empty(): TemplateRef<any>;
emptymessage(): TemplateRef<any>;
/**
* Custom header template.
*/
Expand Down

0 comments on commit 41bccc6

Please sign in to comment.