jQWidgets Forums

jQuery UI Widgets Forums Angular Tabs with Content

This topic contains 2 replies, has 2 voices, and was last updated by  marlonwanger 6 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Tabs with Content #103369

    marlonwanger
    Participant

    Good night, I would like to load a component inside every time I create a new tab but I am in doubt as to how to run it.

    this.jqxTabs.addLast (‘Test’, <HERE>); Does this content have to be passed as?

    I have a very simple test template and I can not load it in

    <ng-template #hello>
       Hello world
    </ ng-template>

    how could I do something similar? I’m testing the components.

    Tabs with Content #103381

    Hristo
    Participant

    Hello marlonwange,

    The addLast method can take HTML element as a string.
    But if you want to add a custom element (you own component) then I would like to suggest you another approach.
    You could use the Dynamic Injection to add there the wanted component.
    Please, take a look at this tutorial.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Tabs with Content #103476

    marlonwanger
    Participant

    Thank you. Work fine.

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

You must be logged in to reply to this topic.