CRUDUI

Home > @polyspec/crudui-generator-core > OptionModel

OptionModel interface

One static option for select/choice/multichoice/search.

Signature:

export interface OptionModel 

Properties

Property

Modifiers

Type

Description

attributes?

Attrs

(Optional) Input attributes of the choice (choice list attributes), present only when declared.

className?

string

(Optional) Label class of the choice (choice list class), present only when declared.

group?

OptionGroupModel

(Optional) Group of a select option inside a choice list group, present only for such an option.

id?

string

(Optional) DOM id for the paired input (choice/multichoice).

isDefault

boolean

This option equals the spec default (choice data-is-default).

label

string

Display label (translated).

selected

boolean

Selected/checked for the current value.

style?

string

(Optional) Label inline style of the choice (choice list style), present only when declared.

value

string

Submitted value.