Documentation

xCount

defines width of 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",
});

See also

  • api
  • samples
  • articles
  • Details

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

    Possible values for the property are:

    • desired number;
    • 0 to disable xCount ( calculate the number of item on the base of component size).
    Back to top