Angular Form - colCountByScreen

Specifies the number of Form columns for different screen sizes.

Type:

Object

Default Value: undefined

The following code snippet specifies 2 columns for the "xs" screen size:

app.component.html
  • <dx-form ... >
  • <dxo-form-col-count-by-screen [xs]="2"></dxo-form-col-count-by-screen>
  • </dx-form>
NOTE
Changing the column count repaints the Form. Repainting resets item states and reinitializes Form items and item templates.

View Demo

lg

The count of columns for a large screen size.

Type:

Number

| undefined
Default Value: undefined

md

The count of columns for a middle-sized screen.

Type:

Number

| undefined
Default Value: undefined

sm

The count of columns for a small-sized screen.

Type:

Number

| undefined
Default Value: undefined

xs

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

Type:

Number

| undefined
Default Value: undefined