packages/ecl/components/ecl-multiselect/ecl-multiselect.component.ts
Component representing a custom multiselect input using the ECL design system.
Should be used on a native
| encapsulation | ViewEncapsulation.None |
| providers |
)
|
| selector | select[eclMultiselect] |
| templateUrl | ecl-multiselect.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor()
|
| ariaDescribedby |
Type : string | undefined
|
Default value : undefined
|
|
Defines the |
| ariaLabeledby |
Type : string | undefined
|
Default value : undefined
|
|
Defines the |
| disabled |
Type : BooleanInput
|
|
Disables the multiselect component when set to true. |
| eclPlaceholder |
Type : string
|
|
Placeholder text to show in the multiselect input field when no options are selected. |
| eclSize |
Type : string
|
Default value : 'm'
|
|
Multiselect size: 's' | 'm' | 'l'. Default is 'm'. |
| hasSearchBox |
Type : string
|
|
Enables the search box within the dropdown. |
| hasSelectAll |
Type : string
|
|
Displays the "Select all" option in the dropdown. |
| id |
Type : string | undefined
|
Default value : undefined
|
|
Sets the |
| isInvalid |
Type : boolean | undefined
|
|
Marks the multiselect as invalid. |
| toggleLabel |
Type : string | undefined
|
Default value : undefined
|
|
Label used for the toggle button that expands or collapses the dropdown. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| eclChange |
Type : EventEmitter
|
|
Emits an array of selected option values when the selection changes. |
| class |
Type : string
|
|
CSS classes applied to the host element. |
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| eclOptionItems |
Type : QueryList<EclMultiselectOptionDirective>
|
Decorators :
@ContentChildren(undefined)
|
|
List of option directives projected into the component. |
| injector |
Type : unknown
|
Default value : inject(Injector)
|
| isInvalid | ||||||
getisInvalid()
|
||||||
|
Marks the multiselect as invalid.
Returns :
boolean | undefined
|
||||||
setisInvalid(value: boolean | undefined)
|
||||||
|
Parameters :
Returns :
void
|
| disabled | ||||||
getdisabled()
|
||||||
setdisabled(value: BooleanInput)
|
||||||
|
Disables the multiselect component when set to true.
Parameters :
Returns :
void
|
| cssClasses |
getcssClasses()
|
|
CSS classes applied to the host element.
Returns :
string
|
| hasSearchBox | ||||||
sethasSearchBox(value: string)
|
||||||
|
Enables the search box within the dropdown.
Parameters :
Returns :
void
|
| hasSelectAll | ||||||
sethasSelectAll(value: string)
|
||||||
|
Displays the "Select all" option in the dropdown.
Parameters :
Returns :
void
|
| eclPlaceholder | ||||||
geteclPlaceholder()
|
||||||
seteclPlaceholder(value: string)
|
||||||
|
Placeholder text to show in the multiselect input field when no options are selected.
Parameters :
Returns :
void
|