NgDocComboboxComponent
A select with an optional text field. Its options are an in a template marked with the directive.
- Decorators
@Component - Selectors
ng-doc-combobox - Generic types
T- Extends
DIControl<T, T>- Implements
NgDocListHost
@Component ({ … })
export class NgDocComboboxComponent <T>
extends DIControl<T>
implements NgDocListHost { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties16 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
clearButton: | Whether the clear button is shown. | ||||||||||||||||
config?: DIControlConfig<TModel, TChildModel> | undefined | — | ||||||||||||||||
data: | The template of the options, marked with the | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
placeholder: | Placeholder of the text field. | ||||||||||||||||
readonly: | Whether the text field is read-only: the value is picked from the list only. | ||||||||||||||||
renderer: | — | ||||||||||||||||
rightContent: | Content shown at the right of the field. | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
valueContent: | Content that shows the value while the field is not being edited. | ||||||||||||||||
Accessors4 | |||||||||||||||||
get disabled: boolean | Returns true if the control is disabled. | ||||||||||||||||
set disabled: boolean | — | ||||||||||||||||
get hasValue: boolean | Returns true if the control is not empty. | ||||||||||||||||
get listHostOrigin: HTMLElement | — | ||||||||||||||||
Methods4 | |||||||||||||||||
(): 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
| |||||||||||||||||