React Form - colCountByScreen
Specifies the number of Form columns for different screen sizes.
Type:
Default Value: undefined
The following code snippet specifies 2 columns for the "xs" screen size:
App.tsx
- import React from 'react';
- import { Form, ColCountByScreen } from 'devextreme-react/form';
- function App() {
- return (
- <Form ... >
- <ColCountByScreen xs={2} />
- </Form>
- );
- };
- export default App;
NOTE
Changing the column count repaints the Form. Repainting resets item states and reinitializes Form items and item templates.