jQuery UI Widgets Forums Layouts Panel and Responsive Panel Appending Child Nodes to a panel widget

This topic contains 2 replies, has 2 voices, and was last updated by  support 12 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Appending Child Nodes to a panel widget #2458

    ayan
    Member

    Hi,

    I was trying to append child nodes to a jqxPanel widget but with no luck.
    The code looks like this.

    something

    Javascript function which does this


    document.getElementById("jqxWidget").appendChild(x);

    This code is not appending the element x in the widget but outside the widget. In other cases when i am not using the widget the element is getting appended successfully . Is their anything silly i am missing out ?

    Thanks in advance.

    Appending Child Nodes to a panel widget #2463

    ayan
    Member

    Hi,

    I was trying to append child nodes to a jqxPanel widget but with no luck.
    The code looks like this.

    something

    Javascript function which does this

    document.getElementById(“jqxWidget”).appendChild(x);

    This code is not appending the element x in the widget but outside the widget. In other cases when i am not using the widget the element is getting appended successfully . Is their anything silly i am missing out ?

    Thanks in advance.

    Appending Child Nodes to a panel widget #2464

    support
    Participant

    Hi ayan,

    You can use the jqxPanel’s ‘append’ and ‘prepend’ methods.

    For example:

     $('#Events').jqxPanel('prepend', '<div style="margin-top: 5px">Expanded'</div>');

    Best Regards,
    George Todorov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.