jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Array Loading question

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Array Loading question #22728

    jon.moon
    Participant

    Is it possible to set the ignoretheme attribute or any other attributes when loading through an array? I am writing a web app which has a lot of dynamically generated pieces, and I need to be able to create and destroy menus within the client side. I figured the best and most flexible way to do this was to use the Array loading method, but I have some issues that I haven’t been able to find workarounds for. Here’s what I am trying to find work-arounds to do:

    1. Load a menu through an Array and adjust the size of the sub-menu (some of the sub-menu items are larger and need more space than the default width gives them).

    2. Add a text input into the top-level of a menu, much like the one in the demos, except being loaded through an array.

    Is there a list anywhere of all of the options that can be loaded through the array method? Is there anything besides html, id, and items?

    Thanks.

    Jon

    Array Loading question #22739

    Peter Stoev
    Keymaster

    Hi,

    When you load the Menu from a data source, the items will be auto-generated and you will not be able to add custom HTML Elements to them or change theid styles. Here’s a sample which shows how to load the Menu and adjust the size of a sub item: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxmenu/menubindingtojson.htm?web

    Best Regards,
    Peter Stoev

    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.