UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

18 lines (17 loc) 693 B
import { Action, BaseAction, IAction } from "./actions/action"; import { IListModel, ListModel } from "./list"; export interface IMultiSelectListModel extends IListModel { selectedItems?: Array<IAction>; } export declare class MultiSelectListModel<T extends BaseAction = Action> extends ListModel<T> { selectedItems: Array<IAction>; hideSelectedItems: boolean; private updateItemState; constructor(options: IMultiSelectListModel); onItemClick: (item: T) => void; isItemDisabled: (itemValue: T) => boolean; isItemSelected: (itemValue: T) => boolean; updateState(): void; setSelectedItems(newItems: Array<IAction>): void; selectFocusedItem(): void; }