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 _enterCallback _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 _exitCallback _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 _selectionMap _selectionMap: {}
_updateCallback _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 _deselectKey _deselectKey( key: string ) : void Private _getKeyForItem _getKeyForItem( item: T ) : any _selectKey _selectKey( key: string , item: T ) : void deselect deselect( item: T , triggerCallbacks?: boolean ) : void Parameters item: T triggerCallbacks: boolean = true Returns void getFilteredList getFilteredList( func: ( a: T ) => any ) : any [] mapOverElements mapOverElements( 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 toggleSelected toggleSelected( 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.