Skip to content

Commit

Permalink
Fix #5288: Datatable add readonly frozenRow property
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 12, 2023
1 parent 45fdd70 commit 4d2fde1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/lib/datatable/DataTableBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ export const DataTableBase = ComponentBase.extend({
first: 0,
footer: null,
footerColumnGroup: null,
frozenRow: false,
frozenValue: null,
frozenWidth: null,
globalFilter: null,
Expand Down Expand Up @@ -502,8 +503,6 @@ export const DataTableBase = ComponentBase.extend({
onRowClick: null,
onRowCollapse: null,
onRowDoubleClick: null,
onRowPointerDown: null,
onRowPointerUp: null,
onRowEditCancel: null,
onRowEditChange: null,
onRowEditComplete: null,
Expand All @@ -512,6 +511,8 @@ export const DataTableBase = ComponentBase.extend({
onRowExpand: null,
onRowMouseEnter: null,
onRowMouseLeave: null,
onRowPointerDown: null,
onRowPointerUp: null,
onRowReorder: null,
onRowSelect: null,
onRowToggle: null,
Expand Down
4 changes: 4 additions & 0 deletions components/lib/datatable/datatable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,10 @@ interface DataTableBaseProps<TValue extends DataTableValueArray> extends Omit<Re
* Width of the frozen part in scrollable DataTable.
*/
frozenWidth?: string | undefined;
/**
* Whether the row is frozen or not. Read-Only necessary for unstyled TypeScript definition.
*/
readonly frozenRow?: boolean;
/**
* Value of the global filter to use in filtering.
*/
Expand Down

0 comments on commit 4d2fde1

Please sign in to comment.