jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs Tab Close Button

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Tab Close Button #7512

    shimmoril
    Participant

    Is it possible to remove/deactivate the close button for a specific tab? We have one tab w/ instructions that should always remain open.

    I tried using $(‘#jqxTabs’).jqxTabs(‘hideCloseButtonAt’, 0); but as soon as another tab is dynamically added, the close button reappears. Calling the method again after the add doesn’t remove it again. Also, since our tabs are re-orderable, there’s no guarantee that the
    ‘index’ tab will always be at position 0.

    Edit: I managed to get this working with a combination of lockAt and hideCloseButtonAt, but this is not optimal for us, since ideally the user would be able to rearrange all the tabs according to their needs. If you have any other suggestions I would appreciate it.

    Tab Close Button #7569

    Dimitar
    Participant

    Hello shimmoril,

    Here is the solution – add the hasclosebutton attribute with a value of false to the html li tag of the tab:

                    <li hasclosebutton='false'>First tab</li>

    Best Regards,
    Dimitar

    jqWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.