@elemental/ui / Class

LmnInputSelectComponent

No documentation has been provided.

Constructor

No documentation has been provided.

Presentation
constructor(
	
): LmnInputSelectComponent<T>;

Properties

NameTypeDescription
#skipFocusOnPopoverClose
boolean
addValueAsOption
r
OutputEmitterRef<LmnInputSelectAddValueAsOptionEvent>

Event emitted when a value is added as option.

allowAddValueAsOption
r
InputSignalWithTransform<boolean, unknown>

If it is set to true and usageMode is "combobox" or "autocomplete", it shows an "Add [value]" option in the suggestions dropdown (where value is the current content of the text field).

allowClear
r
InputSignalWithTransform<boolean, unknown>

If it is set to true, and both disabled and readonly are set to false, a "clear" button is displayed in the field whenever the field is not empty.

attrId
r
InputSignalWithTransform<string, string | undefined>

If it is defined, an id="[value]" attribute is added to the input, otherwise a default id will be assigned.

attrLang
r
InputSignal<string | undefined>

If it is defined, a lang="[value]" attribute is added to the input.

attrName
r
InputSignal<string | undefined>

If it is defined, a name="[value]" attribute is added to the input.

attrSpellCheck
r
InputSignal<LmnInputSelectSpellCheck>

If defined and different from "auto", a spellcheck="[value]" attribute is added to the input.

autocomplete
r
InputSignal<string>

If it is defined, an autocomplete="[value]" attribute is added to the input. Default value is off

clear
r
OutputEmitterRef<void>

Event emitted when the input is cleared.

controlDirective
r
Signal<NgControl | ControlContainer | undefined>

Represent the Angular Control associated with the component.

dirty
r
Signal<boolean | undefined>

Indicates if the control is dirty

disabledMarker
r
InputSignal<string>

If it is defined and disabled is set to true, it is displayed as the disabled marker after the label (if visible) of the input.

disabledReason
r
InputSignal<string | undefined>

If it is defined and disabled is set to true, it is displayed as the content of the popover opened by the info button.

disabledReasonTriggerAriaLabel
r
InputSignal<string>

The aria label to be applied to the "i" button displayed when the input is disabled. If not defined, disabledReasonTriggerTooltip is used instead.

disabledReasonTriggerTooltip
r
InputSignal<string>

The label to be used in the tooltip applied on hover/focus to the "i" button displayed when the input is disabled.

hasError
r
Signal<boolean | undefined>

Indicates if the control has errors

hasVisualError
r
Signal<boolean>

Indicates if the control has a visual error by checking the data-lmn-has-error attribute or the lmn-has-error class

inputChange
r
OutputEmitterRef<string>

Event emitted when the value in the input changes.

isDisabled
r
Signal<boolean | undefined>

Indicates if the control is disabled

language
r
InputSignal<string | undefined>

If it is defined, it is used as extended label for languageCode.

languageCode
r
InputSignal<string | undefined>

If it is defined, it is displayed as the language marker after the label (if visible) of the input.

name
r
inherited from LmnFormGroupDirective
InputSignal<string>

Define the name of the form group

nativeElement
r
HTMLElement
negative
r
inherited from LmnFormGroupDirective
InputSignalWithTransform<boolean, unknown>

Define the negative style for group

placeholder
r
InputSignal<string | undefined>

If it is defined, a placeholder="[value]" attribute is added to the input.

readonly
r
InputSignalWithTransform<boolean, unknown>

If it is set to true, a readonly="[value]" attribute is added to the input.

readonlyMarker
r
InputSignal<string>

If it is defined and readonly is set to true, it is displayed as the readonly marker after the label (if visible) of the input.

required
r
Signal<boolean | undefined>

Indicates if the control is required

requiredMarker
r
InputSignal<string>

If it is defined and required is set to true, it is displayed as the required marker after the label (if visible) of the input.

requiredTrue
r
Signal<boolean | undefined>

Indicates if the control is true

selectedOptionChange
r
OutputEmitterRef<T | null>

Event emitted when one option is selected.

selectionMode
r
InputSignal<LmnInputSelectSelectionMode>

It switches from single selection and multiple selection, and vice versa.

shape
r
InputSignal<LmnInputSelectShape>

sets the shape of the control

size
r
InputSignal<LmnInputSelectSize>

sets the size of the control

touched
r
Signal<boolean | undefined>

Indicates if the control is touched

value
r
inherited from LmnFormGroupDirective
Signal<unknown>

Methods

focus()

No documentation has been provided.

Presentation
focus(): void;
Returns
void

setAllowWithoutControl()

inherited from LmnFormGroupDirective

No documentation has been provided.

Presentation
setAllowWithoutControl(value: boolean): void;
Parameters
NameTypeDescription
value
boolean
Returns
void
protected

toggleListPopover()

Handles the opening/closing of the popover for select and combobox usage modes

Presentation
protected toggleListPopover(event: MouseEvent): void;
Parameters
NameTypeDescription
event
MouseEvent

@param event

Returns
void