Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.24 KB

radio.md

File metadata and controls

26 lines (22 loc) · 1.24 KB

Radio

Radio inputs.

$form->radio('type')
    ->title('Type')
    ->options([
        'article' => 'Article',
        'hint' => 'Hint',
    ]);

Methods

Method Description
$field->title() The title description for this field.
$field->hint() A short hint that should describe how to use the field.`
$field->info() Question mark with tooltip. (Can contain longer field descriptions)
$field->width() Width of the field.
$field->options() An array with checkbox values and descriptions.
$field->stacked() Places each radio one over the other instead of next to each other.
$field->rules() Rules that should be applied when updating and creating.
$field->creationRules() Rules that should be applied when creating.
$field->updateRules() Rules that should be applied when updating.