mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merge branch 'master' into v4
This commit is contained in:
commit
d61c9f5e61
40 changed files with 2703 additions and 120 deletions
|
@ -282,6 +282,7 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
expandedRows: {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler(newValue) {
|
||||
this.d_rowExpanded = this.dataKey ? newValue?.[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : newValue?.some((d) => this.equals(this.rowData, d));
|
||||
|
|
9
components/lib/datatable/DataTable.d.ts
vendored
9
components/lib/datatable/DataTable.d.ts
vendored
|
@ -1135,12 +1135,15 @@ export interface DataTableProps {
|
|||
editingRows?: any[] | DataTableEditingRows;
|
||||
/**
|
||||
* A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
|
||||
* The return value is added to the row's :classes array (see Vue.js class bindings).
|
||||
*/
|
||||
rowClass?: (data: any) => object | undefined;
|
||||
rowClass?: (data: any) => string | object | undefined;
|
||||
/**
|
||||
* A function that takes the row data as a parameter and returns the inline style for the corresponding row.
|
||||
* A function that takes the row data as a parameter and returns the inline style object for the corresponding row.
|
||||
* The function may also return an array of style objects which will be merged.
|
||||
* The return value of this function is directly applied as a Vue.js style-binding on the table row.
|
||||
*/
|
||||
rowStyle?: (data: any) => object | undefined;
|
||||
rowStyle?: (data: any) => object | object[] | undefined;
|
||||
/**
|
||||
* When specified, enables horizontal and/or vertical scrolling.
|
||||
* @defaultValue false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue