A newer version of this page is available. Switch to the current version.

jQuery Form - TabbedItem.tabs.colCountByScreen

Specifies the relation between the screen size qualifier and the number of columns in the tabbed layout.

Type:

Object

Default Value: undefined

jQuery
JavaScript
$(function() {
    $("#formContainer").dxForm({
        // ...
        items: [{
            itemType: "tabbed",
            tabs: [{
                items: [ ... ],
                colCountByScreen: {
                    xs: 2, 
                    sm: 3  
                }
            }]
        },
        // ...
        ]
    });
});
Angular
app.component.html
app.module.ts
<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 { }
Vue
App.vue
<template>
    <DxForm ... >
        <DxTabbedItem ... >
            <DxTab title="Phone">
                <DxColCountByScreen :xs="2" :sm="3"/>
                <DxSimpleItem ... />
            </DxTab>
        </DxTabbedItem>
    </DxForm>
</template>
<script>
import DxForm, {
    DxTabbedItem,
    DxTab,
    DxColCountByScreen,
    DxSimpleItem
} from 'devextreme-vue/form';

export default {
    components: {
        DxForm,
        DxTabbedItem,
        DxTab,
        DxColCountByScreen,
        DxSimpleItem
    }
}
</script>
React
App.js
import Form, {
    TabbedItem,
    Tab,
    SimpleItem,
    ColCountByScreen
} from 'devextreme-react/form';

const App = () => {
    return (
        <Form ... >
            <TabbedItem ... >
                <Tab title="Phone">
                    <ColCountByScreen xs={2} sm={3} />
                    <SimpleItem ... />
                </Tab>
            </TabbedItem>
        </Form>
    );
};

export default App;

lg

The count of columns for a large screen size.

Type:

Number

Default Value: undefined

md

The count of columns for a middle-sized screen.

Type:

Number

Default Value: undefined

sm

The count of columns for a small-sized screen.

Type:

Number

Default Value: undefined

xs

The count of columns for an extra small-sized screen.

Type:

Number

Default Value: undefined