qwc/projects/qwc/src/lib/components/qwc-select/qwc-select.component.ts
Qwc select component
AfterViewInit
OnChanges
OnDestroy
| selector | qwc-select |
| templateUrl | qwc-select.component.html |
Properties |
Methods |
Inputs |
Outputs |
constructor(overlay: Overlay, cd: ChangeDetectorRef)
|
|||||||||
|
Parameters :
|
| config |
Type : QwcSelectConfig
|
| options |
Default value : []
|
| selected |
Default value : []
|
| change |
Type : EventEmitter
|
| dropdownClose |
Type : EventEmitter
|
| dropdownOpen |
Type : EventEmitter
|
| closeCurrentDropdown |
closeCurrentDropdown()
|
|
Close current dropdown
Returns :
void
void |
| initializeOverlayConfig |
initializeOverlayConfig()
|
|
Initialize overlayconfiguration
Returns :
void
void |
| isComplexType | ||||
isComplexType(__option)
|
||||
|
Is complex type
Parameters :
Returns :
boolean
boolean |
| ngAfterViewInit |
ngAfterViewInit()
|
|
Component lifecycle hook
Returns :
void
void |
| ngOnChanges | ||||||
ngOnChanges(changes: literal type)
|
||||||
|
Component lifecycle hook
Parameters :
Returns :
void
void |
| ngOnDestroy |
ngOnDestroy()
|
|
Component lifecycle hook
Returns :
void
void |
| openDropdown |
openDropdown()
|
|
Open drop down
Returns :
void
void |
| optionChangedHandler | ||||
optionChangedHandler(__optionSelected)
|
||||
|
Option changed handler
Parameters :
Returns :
void
void |
| removeSelection | ||||
removeSelection(option)
|
||||
|
Remove selection
Parameters :
Returns :
void
void |
| alive |
Default value : true
|
| cdkOverlayConfig |
Default value : new OverlayConfig()
|
| customHeaderTemplate |
Type : QwcDropdownHeaderDirective
|
Decorators :
@ContentChild(QwcDropdownHeaderDirective, {static: false})
|
| customSelectionTemplate |
Type : QwcSelectedOptionDirective
|
Decorators :
@ContentChild(QwcSelectedOptionDirective, {static: false})
|
| customTemplate |
Type : QwcDropdownItemDirective
|
Decorators :
@ContentChild(QwcDropdownItemDirective, {static: false})
|
| defaultConfig |
Default value : new QwcSelectConfig()
|
| dropdownId |
Default value : v1()
|
| isInitialized |
Default value : false
|
| optionChanged$ |
Default value : new Subject()
|
| portalOverlayHost |
Type : OverlayRef
|
| selectedOptionsArr |
Type : any
|
Default value : []
|
| selectOptionsComponentPortal |
Default value : new ComponentPortal(QwcSelectDropdownComponent)
|
| selectOptionsRef |
Type : ComponentRef<QwcSelectDropdownComponent>
|
| triggerRef |
Type : ElementRef
|
Decorators :
@ViewChild('selectTrigger', {static: false})
|
| triggerWidth |
Type : number
|