xCount

defines the width of the view in items

number xCount;

Example

// width of view will be enough to show 2 items
webix.ui({
    view:"list", 
    xCount:6,
    scroll:"x",
    layout:"x",
});

Related samples

Details

The property makes sense only for a horizontal list (the one featuring "x" layout).

Possible values for the property are:

  • a number>0;
  • 0 to disable xCount (to calculate the number of items on the base of the component size).
See also
  • API
  • Articles
  • Back to top
    If you have not checked yet, be sure to visit site of our main product Webix web control library and page of lists in javascript product.