jQuery UI Widgets Forums Angular createInstance JqxTabs

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by  marlonwanger 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • createInstance JqxTabs #103491

    marlonwanger
    Participant

    I’m having a problem when I use createInstance with the tabs

    Error: Invalid structure!

    initContent: () => {
                          const instance = jqwidgets.createInstance('#tabContainer', 'jqxTabs', {
                            theme: 'material', width: '100%', height: '100%'
                          });
    
                          instance.addAt('0', 'Teste', 'TESTE');
                        }

    Where am I wrong?

    thank you

    createInstance JqxTabs #103495

    marlonwanger
    Participant

    I just made a mistake.

    follows the correction.

    
    <div #tabContainer id="tabContainer" style="padding: 5px;">
          <ul style='margin-left: 20px;'>
            <li>Tab 1</li>
          </ul>
          <div>
              Content 1
          </div>
    </div>

    I had forgotten to start with ul / li

    Thanks.

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

You must be logged in to reply to this topic.