|
16655 | 16655 | }, |
16656 | 16656 | { |
16657 | 16657 | "name": "cellSelection", |
16658 | | - "optional": true, |
| 16658 | + "optional": false, |
16659 | 16659 | "readonly": false, |
16660 | | - "type": "boolean", |
| 16660 | + "type": "true", |
16661 | 16661 | "default": "false", |
16662 | 16662 | "description": "Whether to cell selection is enabled or not." |
16663 | 16663 | }, |
|
17242 | 17242 | "name": "selection", |
17243 | 17243 | "optional": false, |
17244 | 17244 | "readonly": false, |
17245 | | - "type": "TValue", |
| 17245 | + "type": "null | DataTableCellSelection<TValue>[]", |
17246 | 17246 | "default": "", |
17247 | | - "description": "Selected array of values." |
| 17247 | + "description": "Selected cells." |
17248 | 17248 | }, |
17249 | 17249 | { |
17250 | 17250 | "name": "selectionAriaLabel", |
|
17266 | 17266 | "name": "selectionMode", |
17267 | 17267 | "optional": false, |
17268 | 17268 | "readonly": false, |
17269 | | - "type": "null | \"multiple\" | \"checkbox\"", |
| 17269 | + "type": "\"multiple\"", |
17270 | 17270 | "default": "", |
17271 | 17271 | "description": "Specifies the selection mode, valid values are \"single\", \"multiple\", \"radiobutton\" and \"checkbox\"." |
17272 | 17272 | }, |
|
17916 | 17916 | { |
17917 | 17917 | "name": "event", |
17918 | 17918 | "optional": false, |
17919 | | - "type": "DataTableSelectionMultipleChangeEvent<TValue>", |
| 17919 | + "type": "DataTableSelectionCellMultipleChangeEvent<TValue>", |
17920 | 17920 | "description": "Custom selection change event." |
17921 | 17921 | } |
17922 | 17922 | ], |
|
18395 | 18395 | } |
18396 | 18396 | ] |
18397 | 18397 | }, |
18398 | | - "DataTableSelectionCellChangeEvent": { |
18399 | | - "description": "Custom cell selection change event.", |
| 18398 | + "DataTableSelectionCellSingleChangeEvent": { |
| 18399 | + "description": "Custom cell single selection change event.", |
18400 | 18400 | "relatedProp": "DataTableProps.onSelectionChange", |
18401 | 18401 | "props": [ |
18402 | 18402 | { |
|
18422 | 18422 | } |
18423 | 18423 | ] |
18424 | 18424 | }, |
| 18425 | + "DataTableSelectionCellMultipleChangeEvent": { |
| 18426 | + "description": "Custom cell multiple selection change event.", |
| 18427 | + "relatedProp": "DataTableProps.onSelectionChange", |
| 18428 | + "props": [ |
| 18429 | + { |
| 18430 | + "name": "originalEvent", |
| 18431 | + "optional": false, |
| 18432 | + "readonly": false, |
| 18433 | + "type": "SyntheticEvent<Element, Event>", |
| 18434 | + "description": "Browser event." |
| 18435 | + }, |
| 18436 | + { |
| 18437 | + "name": "value", |
| 18438 | + "optional": false, |
| 18439 | + "readonly": false, |
| 18440 | + "type": "DataTableCellSelection<TValue>[]", |
| 18441 | + "description": "Selection objects." |
| 18442 | + }, |
| 18443 | + { |
| 18444 | + "name": "type", |
| 18445 | + "optional": true, |
| 18446 | + "readonly": false, |
| 18447 | + "type": "\"cell\"", |
| 18448 | + "description": "Type of the selection." |
| 18449 | + } |
| 18450 | + ] |
| 18451 | + }, |
18425 | 18452 | "DataTableRowEvent": { |
18426 | 18453 | "description": "Custom context menu event.", |
18427 | 18454 | "relatedProp": "onContextMenu", |
|
21113 | 21140 | "description": "Function that returns a boolean by passing the row data to decide if the radio or checkbox should be displayed per row." |
21114 | 21141 | } |
21115 | 21142 | ], |
21116 | | - "extendedBy": "DataTablePropsSingle,DataTablePropsMultiple,DataTablePropsCell", |
| 21143 | + "extendedBy": "DataTablePropsSingle,DataTablePropsMultiple,DataTablePropsCellSingle,DataTablePropsCellMultiple", |
21117 | 21144 | "extendedTypes": "Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, \"size\" | \"onContextMenu\" | \"ref\" | \"value\">" |
21118 | 21145 | } |
21119 | 21146 | } |
|
0 commit comments