NgDocComboboxHostComponent
Connects a text field, a dropdown and a list into a combobox.
- Decorators
@Component - Selectors
ng-doc-combobox-host - Generic types
T- Extends
DIControl<T, T>- Implements
NgDocOverlayHost NgDocInputHost <string>DICompareHost<T>NgDocDisplayValueHost <T>NgDocListHost
@Component ({ … })
export class NgDocComboboxHostComponent <T>
extends DIControl<T>
implements NgDocOverlayHost , NgDocInputHost <string>, DICompareHost<T>, NgDocDisplayValueHost <T>, NgDocListHost { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties13 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
compareFn: DICompareFunction<T> | Compares an option with the value. | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
displayValueFn: | Turns the value into the text of the field. | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
positions: | — | ||||||||||||||||
renderer: | — | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
Accessors10 | |||||||||||||||||
get disabled: boolean | Returns true if the control is disabled. | ||||||||||||||||
set disabled: boolean | — | ||||||||||||||||
get dropdown: | The dropdown with the options. | ||||||||||||||||
get hasValue: boolean | Returns true if the control is not empty. | ||||||||||||||||
get inputControl: | The text field of the combobox. | ||||||||||||||||
get listHostOrigin: | — | ||||||||||||||||
get origin: | Origin of the dropdown ( | ||||||||||||||||
get panelClass: string | — | ||||||||||||||||
get searchText: string | — | ||||||||||||||||
get width: number | — | ||||||||||||||||
Methods5 | |||||||||||||||||
(): void | Opens the dropdown when the field is clicked. | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): void | Updates the model of the current control. This is the main method that should be used to update the model. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API to write to the view when programmatic changes from model to view are requested. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||