UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

19 lines (18 loc) 843 B
import { Ref, SetupContext } from 'vue'; export declare function useTransfer(dataSource: any[], initialSelections: any[], idField: string, ctx: SetupContext | any, checkBeforeRemoveItem?: (item: any) => boolean): { selectedIds: Ref<string[], string[]>; selections: Ref<any[], any[]>; sourceList: import("vue").ComputedRef<any[]>; targetList: import("vue").ComputedRef<any[]>; filteredSource: import("vue").ComputedRef<any[]>; filteredTarget: import("vue").ComputedRef<any[]>; sourceSearchText: Ref<string, string>; targetSearchText: Ref<string, string>; moveSelected: () => void; moveAll: () => void; removeSelected: () => void; removeAll: () => void; selectAllVisible: () => void; deselectAll: () => void; filterByKeyword: (list: any[], keyword: string, field: string) => any[]; };