Multiselect

Overview

A Select field that supports the selection of multiple values. The component also supports required fields validation, minimum/maximum length, and custom rules.

Properties

Name
Type
Description

name

string

Component name

value

any

Current component value

autocompleteValue

string

Value of the autocomplete input field

valid

boolean

Indicates if the component is valid

validating

boolean

Indicates if the component is validating

disabled

boolean

Indicates whether the component is disabled

options

array

Current component options

Methods

Name
Parameters
Returns
Description

setValue

value: any

void

Set component value

setOptions

options: object[]

void

Set options for the select. Options is an array of objects with the following structure: {

value: any;

title: string;

}

setDisabled

disabled: boolean

void

Disable or enable the component

reset

โ€“

void

Reset component to the initial value

validate

โ€“

void

Trigger component validation

resetValidation

โ€“

void

Clear validation errors

setErrors

errors: string |

string[] | null

void

Mark the component as invalid and display errors

setRequired

required: boolean

void

Set component required state

Triggers

Name
Description

On Change

Triggered when the component's state changes

On Focus

Triggered when the component is in focus

On Blur

Triggered when the component loses focus

On Init

Triggered when the component is initialized

Last updated

Was this helpful?