jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs Adding attribute to tab(li) and content(div) dynamically

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

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

  • jakejeon
    Participant

    Hi there!

    Is it possible to add attributes like id, class, etc.. when tab are dynamically added by event?

    <div class=”jqx-tabs-content jqx-widget-content jqx-rc-b” style=”float: none; height: auto;”>
    <div id=”content-1″ << role=”tabpanel” class=”jqx-tabs-content-element jqx-rc-b” style=”display: none;”>Content 1</div>
    <div id=”content-2″ << class=”jqx-tabs-content-element jqx-rc-b” style=”display: block;”>Loading…</div>
    </div>

    *edit
    Adding to the previous question, how does tab button know its content div element when tab clicked?


    Dimitar
    Participant

    Hello jakejeon,

    1) Unfortunately, it is not possible to add attributes to dynamically added tabs.

    2) This logic is implemented internally in the widget’s source code.

    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.