Skip to content
Shamar

RelationTable

Company resource.
RelationTable.make('contacts').relationship('contacts', 'name').listTable().createOption()

Methods

MethodDescription
.relationship(name, titleAttribute)Related model.
.listTable() / .simple()Table chrome.
.createOption()Inline create.
.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.

Company resource.