Constructors constructor new ASelection<T>( items?: T [] , enterCallback?: ( enteringSelection: T , selection?: ASelection < T > ) => void , updateCallback?: ( remainingInSelection: T , selection?: ASelection < T > ) => void , exitCallback?: ( leavingSelection: T , selection?: ASelection < T > ) => void ) : ASelection < T > Type parameters Parameters Optional items: T [] Optional enterCallback: ( enteringSelection: T , selection?: ASelection < T > ) => void ( enteringSelection: T , selection?: ASelection < T > ) : void Parameters enteringSelection: T Optional selection: ASelection < T > Returns void Optional updateCallback: ( remainingInSelection: T , selection?: ASelection < T > ) => void ( remainingInSelection: T , selection?: ASelection < T > ) : void Parameters remainingInSelection: T Optional selection: ASelection < T > Returns void Optional exitCallback: ( leavingSelection: T , selection?: ASelection < T > ) => void ( leavingSelection: T , selection?: ASelection < T > ) : void Parameters leavingSelection: T Optional selection: ASelection < T > Returns void Properties _enter Callback _enter
Callback
: ( enteringSelection
: T , selection
?: ASelection < T > ) => void Type declaration ( enteringSelection: T , selection?: ASelection < T > ) : void Parameters enteringSelection: T Optional selection: ASelection < T > Returns void _exit Callback _exit
Callback
: ( leavingSelection
: T , selection
?: ASelection < T > ) => void Type declaration ( leavingSelection: T , selection?: ASelection < T > ) : void Parameters leavingSelection: T Optional selection: ASelection < T > Returns void Protected _selection Map_selection Map: {}
_update Callback _update
Callback
: ( remainingInSelection
: T , selection
?: ASelection < T > ) => void Type declaration ( remainingInSelection: T , selection?: ASelection < T > ) : void Parameters remainingInSelection: T Optional selection: ASelection < T > Returns void Methods Private _deselect Key_deselect Key( key: string ) : void Private _get Key For Item_get Key For Item( item: T ) : any _select Key _select Key( key: string , item: T ) : void deselect deselect( item: T , triggerCallbacks?: boolean ) : void Parameters item: T triggerCallbacks: boolean = true Returns void get Filtered List get Filtered List( func: ( a: T ) => any ) : any [] map Over Elements map Over Elements( func: ( a: T ) => any ) : any [] select select( item: T , triggerCallback?: boolean ) : void Parameters item: T triggerCallback: boolean = true Returns void set set( items?: T [] , triggerCallbacks?: boolean , exitCallback?: ( item: T , selection?: ASelection < T > ) => void , enterCallback?: ( item: T , selection?: ASelection < T > ) => void , updateCallback?: ( item: T , selection?: ASelection < T > ) => void ) : void Parameters Optional items: T [] triggerCallbacks: boolean = true Optional exitCallback: ( item: T , selection?: ASelection < T > ) => void Optional enterCallback: ( item: T , selection?: ASelection < T > ) => void Optional updateCallback: ( item: T , selection?: ASelection < T > ) => void Returns void toggle Selected toggle Selected( item: T , triggerCallbacks?: boolean ) : void Parameters item: T triggerCallbacks: boolean = true Returns void Legend Constructor Property Method Accessor Inherited constructor Inherited property Inherited method Inherited accessor Protected property Protected method Private property Private method Static property Static method Settings Theme OS Light Dark
The constructor optionally takes a list of items to select.