Select
Select.make('companyId') .relationship('companies', 'name') .createOption() .createAndEditOption()Methods
| Method | Description |
|---|---|
.options([{ label, value }]) | Static choices. |
.multiple() | Multi-select. |
.relationship(name, titleAttribute) | BelongsTo picker. |
.createOption() / .createAndEditOption() | Inline create modals. |
.native() | Native select element. |
.label(text) | Field label in the UI. |
.required() | Mark required on create/edit. |
.helperText(text) | Help text below the control. |
.default(value) | Default state when creating a record. |
.hiddenOnForm() / .hiddenOnDetail() | Hide on create/edit or show view. |
.columnSpan(n) / .columnSpanFull() | Grid span inside Section/Grid layouts. |
.live() | Re-render the form when this field changes. |
Playground
Section titled “Playground”Form components gallery at /demo/form-components.