Forum
    • Categories
    • Register
    • Login

    How to add an element after onInit

    Scheduled Pinned Locked Moved Newbie League
    3 Posts 2 Posters 30 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daniloprates
      last edited by

      I need to add some components after loading an expansion, but got this message:

      Tried to add a component after onInit()

      D 1 Reply Last reply Reply Quote 0
      • D
        daniloprates @daniloprates
        last edited by

        From what I can see, there's no way to add or remove elements after the onInit phase. I wonder how people handle different layouts and elements for each expansion...

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @daniloprates
          last edited by

          @daniloprates I don't think the dynamic component feature is ready yet.

          One way you can do is have a common parent panel, then add child panels to it dynamically following the layout your expansion requires. A child panel can be turned to any component like slider, label, or any more complex widget

          Hise made me an F5 dude, any other app just suffers...

          1 Reply Last reply Reply Quote 2
          • First post
            Last post

          10

          Online

          2.1k

          Users

          13.2k

          Topics

          114.8k

          Posts