
This function also returns an instance of the FormLayoutRow class to allow method chaining. To add a new control to a row, use the addCol method of the FormLayoutRow class (see above):įunction addCol($column, $inputWidth = null, $labelWidth = null) This function has no parameters and returns an instance of the FormLayoutRow class that can be later used to add controls to the new row (see below). To add a new row to a group, use the addRow method of the FormLayoutGroup class (see above): $addressGroup->setMode(FormLayoutMode::HORIZONTAL) $group->setInlineStyles('color: green ') ĭefines where the control label is placed: on the left of the editor (for vertical mode) or on the top of the editor (for horisontal). Public function setInlineStyles($inlineStyles) $group->setCustomAttributes('data-group="test"') Public function setCustomAttributes($customAttributes) The following methods can be used for groups: $addressGroup = $activityTab->addGroup(null, 6, '', 'color: green ') This group has no caption and attributes, takes 50% of the tab's space, and its text color is green.
SQL MAESTRO PHP GENERATOR FOR MYSQL CODE
The following code adds an 'addressGroup' group to the layout. Width is provided in relative units, possible values are integers from 1 to 12. This function returns an instance of the FormLayoutGroup class that can be later used to add rows to the new group (see below). To add a new group to the layout, use the addGroup method of the FormLayout class: To add a new tab use the following command: The picture below illustrates the tabs appearance in the default color scheme depending of the %TABS_STYLE% value. To add a new tab to the layout, first enable tabs on a form with the enableTabs command. \\ tab are placed on the left of the editors \\ the layout consists of tabs and control labels of 'Personal Info' \\ the label is placed on the top of the editor This method works for layout, a tab, a group and a row. You can switch the form mode with the setMode method. the control label is placed on the left of the editor (for vertical forms the label is placed on the top of the editor). To adjust a concrete form (i.e Edit), use the following condition:īy default all forms are horizontal i.e. \\ the first row of this group is 'active'īy default the form customization will be used in the Edit, Multi Edit, Insert, View, and also on inline inserting and editing. $activityGroup->addRow()->addCol($columns, 12) \\ the next 50% of this tab's space is $activityGroup, a group without caption $activityGroup = $activityTab->addGroup(null, 6) \\ this group contains of two rows: 'store_id' $addressGroup->addRow()->addCol($columns, 12) $addressGroup = $activityTab->addGroup(null, 6) $activityTab = $layout->addTab('Activity') \\ the first row of this group contains two columns: \\ there is a 'Common Information' group in this tab $commonInfoGroup = $personalInfoTab->addGroup('Common Information') \\ this tab's control labels are placed on the left of the editors $personalInfoTab->setMode(FormLayoutMode::HORIZONTAL) $personalInfoTab = $layout->addTab('Personal Info') $layout->enableTabs(FormTabsStyle::TABS) \\ labels are placed on the top of the editors $layout->setMode(FormLayoutMode::VERTICAL) \\ this customization is used for Insert and Edit forms This means you can add tabs to the layout, groups to tabs and layout, rows to groups, and columns to rows as shown below.


The layout has the following hierarchical structure: layout -> tabs -> groups -> rows -> columns. The associative array of columns displayed in the form.

Possible values are "edit", "inline_edit", "inline_view", "insert", "inline_insert", and "view".
