src/interfaces/option.interface.ts
Represents a multi-select option with a label, value, and optional children.
Properties |
| children |
children:
|
Type : Array<OptionMulti>
|
| Optional |
|
(Optional) An array of child options for this multi-select option. |
| data |
data:
|
Type : any
|
| Optional |
|
(Optional) Additional data |
| disabled |
disabled:
|
Type : boolean
|
| Optional |
|
(Optional) Indicates if the option is disabled. |
| label |
label:
|
Type : string
|
|
The label to display for the option. |
| open |
open:
|
Type : boolean
|
| Optional |
|
(Optional) Indicates whether the option's children should be displayed (open) in a dropdown. |
| value |
value:
|
Type : any
|
|
The value associated with the option. |
export interface Option {
/**
* The value associated with the option.
*/
value: any;
/**
* The label to display for the option.
*/
label: string;
/**
* (Optional) Indicates if the option is disabled.
*/
disabled?: boolean;
/**
* (Optional) Additional data
*/
data?: any;
}
/**
* Represents a multi-select option with a label, value, and optional children.
* @interface
*/
export interface OptionMulti {
/**
* The label to display for the option.
*/
label: string;
/**
* The value associated with the option.
*/
value: any;
/**
* (Optional) Indicates if the option is disabled.
*/
disabled?: boolean;
/**
* (Optional) An array of child options for this multi-select option.
*/
children?: Array<OptionMulti>;
/**
* (Optional) Indicates whether the option's children should be displayed (open) in a dropdown.
*/
open?: boolean;
/**
* (Optional) Additional data
*/
data?: any;
}