HumHub Documentation (unofficial)

TabbedFormModel

Interface TabbedFormModel It is related for Model classes only

Tags
since
1.11.0

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'], ], ]

Return values
array<string|int, mixed>

        
On this page

Search results