scroll

enables/disables the scroll bar

boolean|string scroll;

Values

  • "y" (or true)
    enables vertical scroll
  • "x"
    enables horizontal scroll
  • "xy"
    enables both scrolls
  • "auto"
    enables scroll only if the content of the list is bigger that the container
  • false
    disables both scrolls
  • Example

    webix.ui({
        view:"tree", width:150,
        scroll:"y",
        data: [
            { id:"1", open:true, value:"The Shawshank Redemption", data:[
                { id:"1.1", value:"Part 1" },
                { id:"1.2", value:"Part 2" }
            ]},
            { id:"2", value:"The Shawshank Redemption 2", data:[
                { id:"2.1", value:"Part 3" },
            { id:"2.2", value:"Part 4" }
            ]}
        ]
    });


    Default value:

    "auto"

    Related samples

    See also
    Back to top
    If you have not checked yet, be sure to visit site of our main product Webix web development library and page of javascript tree data structure product.