@@ -144,33 +144,33 @@ The MultiLevelTable component accepts the following props:
144144| selectable | boolean | No | false | Enable/disable row selection |
145145
146146#### State Props
147- | Prop | Type | Required | Description |
148- | ------| ------| ----------| -------------|
149- | selectionState | SelectionState | Yes | Current selection state with selected rows and all selected flag |
150- | searchTerm | string | Yes | Current search term for filtering data |
151- | selectedFilterValues | Set<string \| number> | Yes | Currently selected filter values |
152- | deletePopup | object | Yes | Delete confirmation popup state (isOpen, itemId, itemName) |
153- | bulkDeletePopup | object | Yes | Bulk delete confirmation popup state (isOpen, selectedCount) |
154- | openDropdowns | Set<string > | Yes | Set of currently open dropdown IDs |
155- | expandedRows | Set<string \| number> | Yes | Set of currently expanded row IDs |
147+ | Prop | Type | Required | Default | Description |
148+ | ------| ------| ----------| ---------| --------- ----|
149+ | selectionState | SelectionState | No | { selectedRows: new Set(), isAllSelected: false } | Current selection state with selected rows and all selected flag |
150+ | searchTerm | string | No | '' | Current search term for filtering data |
151+ | selectedFilterValues | Set<string \| number> | No | new Set() | Currently selected filter values |
152+ | deletePopup | object | No | { isOpen: false, itemId: null, itemName: '' } | Delete confirmation popup state (isOpen, itemId, itemName) |
153+ | bulkDeletePopup | object | No | { isOpen: false, selectedCount: 0 } | Bulk delete confirmation popup state (isOpen, selectedCount) |
154+ | openDropdowns | Set<string > | No | new Set() | Set of currently open dropdown IDs |
155+ | expandedRows | Set<string \| number> | No | new Set() | Set of currently expanded row IDs |
156156
157157#### Handler Props
158- | Prop | Type | Description |
159- | ------| ------| -------------|
160- | onSearchChange | (searchTerm: string) => void | Updates the search term for filtering data |
161- | onFilterChange | (values: Set<string \| number>) => void | Updates the selected filter values |
162- | onDeleteClick | (itemId: string \| number, itemName: string) => void | Handles delete button click for a specific row |
163- | onDeleteConfirm | () => void | Confirms the delete action for the selected row |
164- | onDeleteCancel | () => void | Cancels the delete action and closes popup |
165- | onBulkDeleteClick | () => void | Handles bulk delete button click for selected rows |
166- | onBulkDeleteConfirm | () => void | Confirms the bulk delete action for selected rows |
167- | onBulkDeleteCancel | () => void | Cancels the bulk delete action and closes popup |
168- | onDropdownToggle | (buttonId: string, isOpen: boolean) => void | Toggles dropdown open/close state for action buttons |
169- | onDropdownClose | (buttonId: string) => void | Closes a specific dropdown by ID |
170- | onButtonClick | (button: ButtonConfig) => void | Handles click events for action buttons (export, filter, etc.) |
171- | onSelectAll | () => void | Handles select all checkbox click to select/deselect all rows |
172- | onRowSelect | (rowId: string \| number) => void | Handles individual row selection checkbox click |
173- | onRowToggle | (rowId: string \| number) => void | Handles row expand/collapse toggle for nested rows |
158+ | Prop | Type | Required | Default | Description |
159+ | ------| ------| ----------| --------- | ---------- ---|
160+ | onSearchChange | (searchTerm: string) => void | No | - | Updates the search term for filtering data |
161+ | onFilterChange | (values: Set<string \| number>) => void | No | - | Updates the selected filter values |
162+ | onDeleteClick | (itemId: string \| number, itemName: string) => void | No | - | Handles delete button click for a specific row |
163+ | onDeleteConfirm | () => void | No | - | Confirms the delete action for the selected row |
164+ | onDeleteCancel | () => void | No | - | Cancels the delete action and closes popup |
165+ | onBulkDeleteClick | () => void | No | - | Handles bulk delete button click for selected rows |
166+ | onBulkDeleteConfirm | () => void | No | - | Confirms the bulk delete action for selected rows |
167+ | onBulkDeleteCancel | () => void | No | - | Cancels the bulk delete action and closes popup |
168+ | onDropdownToggle | (buttonId: string, isOpen: boolean) => void | No | - | Toggles dropdown open/close state for action buttons |
169+ | onDropdownClose | (buttonId: string) => void | No | - | Closes a specific dropdown by ID |
170+ | onButtonClick | (button: ButtonConfig) => void | No | - | Handles click events for action buttons (export, filter, etc.) |
171+ | onSelectAll | () => void | No | - | Handles select all checkbox click to select/deselect all rows |
172+ | onRowSelect | (rowId: string \| number) => void | No | - | Handles individual row selection checkbox click |
173+ | onRowToggle | (rowId: string \| number) => void | No | - | Handles row expand/collapse toggle for nested rows |
174174
175175#### Additional Props
176176| Prop | Type | Default | Description |
0 commit comments