Files
manolia-alpha/node_modules/buetify/lib/components/table/composables/useSelectableTable.d.ts
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

35 lines
1.3 KiB
TypeScript
Executable File

import { FunctionN } from 'fp-ts/lib/function';
import { ExtractPropTypes, PropType, ComputedRef, Ref } from 'vue';
import { BTableRow } from '../shared';
export declare const BTableSelectablePropsDefinition: {
isSelectable: {
type: PropType<boolean>;
default: boolean;
};
selectedRows: {
type: PropType<BTableRow[]>;
default: import("fp-ts/lib/function").Lazy<never[]>;
};
'onUpdate:selectedRows': {
type: PropType<FunctionN<[BTableRow[]], void>>;
default: import("fp-ts/lib/function").Lazy<() => void>;
};
onSelectRow: {
type: PropType<FunctionN<[BTableRow], void>>;
default: import("fp-ts/lib/function").Lazy<() => void>;
};
onUnselectRow: {
type: PropType<FunctionN<[BTableRow], void>>;
default: import("fp-ts/lib/function").Lazy<() => void>;
};
};
export interface BTableSelectableProps extends ExtractPropTypes<typeof BTableSelectablePropsDefinition> {
}
export declare function useSelectableTable(props: BTableSelectableProps): UseSelectableTableState;
export interface UseSelectableTableState {
isSelectable: Ref<boolean>;
selectedRowIds: ComputedRef<Set<unknown>>;
toggleRowSelection: FunctionN<[BTableRow], void>;
}
export declare function useInjectedSelectableTable(): UseSelectableTableState;