jQuery UI Widgets › Forums › Navigation › NavigationBar, ToolBar, NavBar › Hide/show controls on the toolbar
Tagged: toolbar; hide or show controls dynamically
This topic contains 2 replies, has 2 voices, and was last updated by alastairwalker 3 years, 3 months ago.
Is there a way to dynamically hide or show controls on the toolbar?
The Disable property does not hide the control, only renders it passive.
If the control was attached to a normal selector, I would have used the jQuery(selector).hide or jQuery(selector).show() methods to hide/show the control.
It is not clear to me how the tool.jqxInput (for example) can be used to dynamically hide or show a toolbar control.
Any help/ guidance on this matter will be really appreciated!
You could use the “destroyTool” method and when you want to show it the “addTool” method.
Or another option is to get the relevant id for wanted tool in the “initTools” callback.
Please, take a look at this example.
Thank you! This is very helpful!
You must be logged in to reply to this topic.