tabs[]
colCount
For extra small screens, this option always equals 1 to make the widget adaptive. Specify the colCountByScreen option to override this logic.
jQuery
$(function() { $("#formContainer").dxForm({ // ... items: [{ itemType: "tabbed", tabs: [{ // ... colCountByScreen: { xs: 2 } }, // ... ], }, // ... ] }); });
Angular
<dx-form ... > <dxi-item itemType="tabbed"> <dxi-tab ... > <dxo-col-count-by-screen [xs]="2"></dxo-col-count-by-screen> </dxi-tab> </dxi-item> </dx-form>
import { DxFormModule } from "devextreme-angular"; // ... export class AppComponent { // ... } @NgModule({ imports: [ // ... DxFormModule ], // ... })
colCountByScreen
Specifies the relation between the screen size qualifier and the number of columns in the tabbed layout.
jQuery
$(function() { $("#formContainer").dxForm({ // ... items: [{ itemType: "tabbed", tabs: [{ items: [ ... ], colCountByScreen: { xs: 2, sm: 3 } }] }, // ... ] }); });
Angular
<dx-form ... > <dxi-item itemType="tabbed"> <dxi-tab title="Phone"> <dxo-col-count-by-screen [xs]="2" [sm]="3"> </dxo-col-count-by-screen> <dxi-item ... ></dxi-item> </dxi-tab> </dxi-item> </dx-form>
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { DxFormModule } from 'devextreme-angular'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, DxFormModule ], bootstrap: [AppComponent] }) export class AppModule { }
icon
This option accepts one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format
items
Array<Simple Form Item | Group Form Item | Tabbed Form Item | Empty Form Item | Button Form Item>
Like the items option of the Form widget, the array passed to the items field of a tab can hold items of the following types.
Simple
A standard item consisting of a label and an editor widget used to specify a value of the associated data field.Group
An item representing a container of other form items.Tabbed
An item representing a tabbed container of other form items.Empty
An empty item used to add a space between neighboring items.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
We appreciate your feedback.