- useListAction<Data>(params): {
commitAction: ((p?: string) => Promise<null | void>);
commitRowAction: ((action: string, row: Data) => Promise<null | void>);
deselectAll: (() => void);
listProps: {
onSelectedRows: ((rowIds: RowId[]) => void);
selectedRows: RowId[];
};
selectedRows: RowId[];
} Returns {
commitAction: ((p?: string) => Promise<null | void>);
commitRowAction: ((action: string, row: Data) => Promise<null | void>);
deselectAll: (() => void);
listProps: {
onSelectedRows: ((rowIds: RowId[]) => void);
selectedRows: RowId[];
};
selectedRows: RowId[];
}
- The list actions and necessary data.
commitAction: ((p?: string) => Promise<null | void>)
- (p?): Promise<null | void>
Returns Promise<null | void>
Readonly
commitRowAction: ((action: string, row: Data) => Promise<null | void>)
- (action, row): Promise<null | void>
Returns Promise<null | void>
deselectAll: (() => void)
listProps: {
onSelectedRows: ((rowIds: RowId[]) => void);
selectedRows: RowId[];
}
Readonly
onSelectedRows: ((rowIds: RowId[]) => void)
- (rowIds): void
Returns void
selectedRows: RowId[]
selectedRows: RowId[]
Provides a set of actions and hooks for managing a list of data.