jQuery UI Widgets Forums Navigation NavigationBar, ToolBar, NavBar Hide/show controls on the toolbar

This topic contains 2 replies, has 2 voices, and was last updated by  alastairwalker 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Hide/show controls on the toolbar #107081

    alastairwalker
    Participant

    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!

    Many thanks,

    Alastair

    Hide/show controls on the toolbar #107103

    Hristo
    Participant

    Hello Alastair,

    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.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    Hide/show controls on the toolbar #107115

    alastairwalker
    Participant

    Thank you! This is very helpful!

    Many thanks,

    Alastair

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.