TabbedFormModel
in
Interface TabbedFormModel It is related for Model classes only
Tags
Table of Contents
Methods
- getTabs() : array<string|int, mixed>
- Initialize tabs for the Form
Methods
getTabs()
Initialize tabs for the Form
public
getTabs() : array<string|int, mixed>
Example of the result: [ [ 'label' => 'First tab', 'view' => 'first-tab-view', 'linkOptions' => ['class' => 'first-tab-style'], 'fields' => ['name', 'email', 'password'], // Define all fields from the tab which may have errors after submit in order to make this tab active ], [ 'label' => 'Second tab', 'view' => 'second-tab-view', 'linkOptions' => ['class' => 'second-tab-style'], 'fields' => ['description', 'tags'], ], ]