cecomponent 2.0.57 → 2.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,12 +105,25 @@ interface CEDataGridDynamicTableProps {
|
|
|
105
105
|
* Receives the row data. If omitted, all rows are enabled.
|
|
106
106
|
*/
|
|
107
107
|
getRowDisabled?: (row: any) => boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Optional function to dynamically style rows based on column values.
|
|
110
|
+
* Receives the row data and returns an object with CSS properties.
|
|
111
|
+
* Supports backgroundColor, color, condition, and any other CSS properties.
|
|
112
|
+
* Example: getRowStyle={(row) => ({ backgroundColor: row.status === 'active' ? '#E8F5E9' : undefined, color: '#C62828' })}
|
|
113
|
+
*/
|
|
114
|
+
getRowStyle?: (row: any) => {
|
|
115
|
+
backgroundColor?: string;
|
|
116
|
+
color?: string;
|
|
117
|
+
condition?: boolean;
|
|
118
|
+
[key: string]: string | number | boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
108
120
|
/**
|
|
109
121
|
* Array of custom action icons to render in the action column.
|
|
110
122
|
* Developers can add their own icons with custom onclick functionality.
|
|
111
123
|
* @default []
|
|
112
124
|
*/
|
|
113
125
|
customActions?: CustomAction[];
|
|
126
|
+
shouldColumnPersist?: boolean;
|
|
114
127
|
}
|
|
115
128
|
declare const CEDataGridDynamicTable: React.FC<CEDataGridDynamicTableProps>;
|
|
116
129
|
export default CEDataGridDynamicTable;
|
package/package.json
CHANGED