fix selection command

This commit is contained in:
Chris Kruining 2025-01-06 15:49:37 +01:00
parent ce7a300f48
commit 96d04a6094
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 11 additions and 4 deletions

View file

@ -23,7 +23,7 @@ export interface TableApi<T extends Record<string, any>> {
readonly rows: Accessor<DataSet<T>>;
readonly columns: Accessor<Column<T>[]>;
selectAll(): void;
clear(): void;
clearSelection(): void;
}
interface TableContextType<T extends Record<string, any>> {
@ -123,7 +123,7 @@ function Api<T extends Record<string, any>>(props: { api: undefined | ((api: Tab
selectAll() {
selectionContext.selectAll();
},
clear() {
clearSelection() {
selectionContext.clear();
},
};