@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.
@@ -5,6 +5,7 @@ interface EditableMobileProps<Data extends object> {
5
5
  data: Data[];
6
6
  instance: UseTableHooks;
7
7
  emptyDataMessage?: string;
8
+ showCheckbox?: boolean;
8
9
  }
9
10
  export default function EditableTableMobile(props: EditableMobileProps<any>): JSX.Element;
10
11
  export {};
@@ -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';