projects/m2-core/src/lib/shared/ui-components/options-list.component.ts
| selector | options-list |
| styles |
.options-menu {
min-height: 1.8em;
}
.options-menu.visible-search-input {
min-height: 3.8em;
}
.modal-window-search-wrapper {
position: relative;
padding: 0 .5em;
margin: .3em 0;
}
.modal-window-search-wrapper > .fa-search {
padding: .35em .65em;
}
.options-menu > .nothing-to-display-label {
position: absolute;
left: 0;
bottom: 0;
z-index: -1;
}
.options-wrapper {
max-width: 400px;
white-space: nowrap;
background-color: #FFF;
}
|
| template | |
Properties |
Methods |
|
Inputs |
Outputs |
constructor()
|
| getOptionsFn |
Type : function
|
| notFoundMsg |
Type : string
|
| openExtendedClickFn |
Type : function
|
| options |
Type : Option[]
|
| placeholder |
Type : string
|
| searchInputVisible |
Type : boolean
|
Default value : true
|
| optionSelected |
Type : EventEmitter
|
| Public focus |
focus()
|
|
Returns :
void
|
| Public loadOptions | ||||||
loadOptions(searchQuery?: string)
|
||||||
|
Parameters :
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| onOptionSelected | ||||||
onOptionSelected(option: Option)
|
||||||
|
Parameters :
Returns :
void
|
| onSearchInput |
onSearchInput()
|
|
Returns :
void
|
| onSearchInputClick | ||||||
onSearchInputClick(event: MouseEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onSearchInputKeyDown | ||||||
onSearchInputKeyDown(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| Public resetKeyboardSearch |
resetKeyboardSearch()
|
|
Returns :
void
|
| highlightOnly |
Default value : false
|
| listComponent |
Type : SdiListComponent
|
Decorators :
@ViewChild(SdiListComponent)
|
| searchInputRef |
Type : ElementRef
|
Decorators :
@ViewChild('searchInput')
|
| searchQuery |
Type : string
|