showBatch

makes visible those elements, the parameter 'batch' of which is set to the specified name

void showBatch(string name, [boolean mode] );
name
stringthe batch name mode
booleanoptional, the mode of showing elements

Example

// 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);

Related samples

Details

The mode parameter is optional. It can have the following values:

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of multi view product.