@majoo-ui/react 1.52.5 → 1.52.7
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.
- package/components/editableTable/EditableMobile.d.ts +1 -0
- package/components/editableTable/EditableTable.d.ts +26 -0
- package/index.esm.js +243 -111
- package/index.umd.js +239 -103
- package/package.json +1 -1
|
@@ -31,6 +31,32 @@ interface EditableTableProps<Data extends object> {
|
|
|
31
31
|
* Additional customize one of the rows based on the specified condition
|
|
32
32
|
*/
|
|
33
33
|
customRows?: (row: Row<object>) => CustomRows[];
|
|
34
|
+
/**
|
|
35
|
+
* Show checkbox table selection.
|
|
36
|
+
*/
|
|
37
|
+
showCheckbox?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Change event handler table selection.
|
|
40
|
+
*/
|
|
41
|
+
onSelectedChange?: (data: any) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Checkbox callback props.
|
|
44
|
+
*/
|
|
45
|
+
getCheckboxProps?: (data: any) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Row's unique key (for selectedIds & onSelectedChange purpose).
|
|
48
|
+
*/
|
|
49
|
+
keyId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Selected data id (based on the keyId prop).
|
|
52
|
+
* Example:<br/>
|
|
53
|
+
* {
|
|
54
|
+
* '8192389219289': true,
|
|
55
|
+
* '2130912039281': true,
|
|
56
|
+
* '2130912039382': true
|
|
57
|
+
* }
|
|
58
|
+
*/
|
|
59
|
+
selectedIds?: Record<string, boolean>;
|
|
34
60
|
}
|
|
35
61
|
interface RemoveProps {
|
|
36
62
|
position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
|