Unplanned
Last Updated: 27 Feb 2020 16:12 by ADMIN
Imported User
Created on: 27 Aug 2018 17:15
Category: Toolbar
Type: Feature Request
5
Make kendo ToolBar items.hidden attribute function for type separator
BUG: setting a kendo ToolBar item.hidden with type of separator does not work. The separator is still displayed. For example:
```
$("#mytoolbar").kendoToolBar({
    items: [
        {
            type: "button",
            text: "button 1",
            hidden: true
        },
        {
            type: "spearator",
            hidden: true
        }
    ]
});
```

In this case, the button is hidden but the separator is not.
1 comment
Imported User
Posted on: 27 Aug 2018 18:21
There is a workaround using item.attributes like this:
//...
                {
                    type: "separator",
                    attributes: { "style": "display:none") },
                },
//...

Although, it would be nice if the API were consistent.