делает видимыми те элементы, параметр 'batch' которых задан определенным именем
name | string | the batch name |
mode | boolean | необязательный параметр, the mode of showing elements |
// the elements with the batch name "b2" are shown initially
webix.ui({
view:"toolbar", id:"mybar", visibleBatch:"b2", cols:[
{view:"button", value:"Save", batch:"b1"},
{view:"button", value:"Cancel", batch:"b1"},
{view:"button", value:"Edit", batch:"b2"},
{view:"button", value:"Back", batch:"b2"}
]
});
// hides elements with the batch name "b2", shows those with the batch name "b1"
$$("mybar").showBatch("b1");
// shows elements with the batch names "b1" and "b2"
$$("mybar").showBatch("b1", true);
// shows elements with the batch name "b2"
$$("mybar").showBatch("b1", false);
The mode parameter is optional. It can have the following values: