Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-14435

jquery mobile listview id property

XMLWordPrintable

      the listview should have a id property - allows the end-user to more easily then use JS to populate the ULs from a REST endpoint.

      From our TiMo tutorial:
      http://www.jboss.org/jdf/examples/ticket-monster/tutorial/Introduction/#_adding_a_jquery_mobile_client_application

      $.getJSON("rest/events", function(events) {
      // console.log("returned are " + events);
      var listOfEvents = $("#listOfItems");
      listOfEvents.empty();
      $.each(events, function(index, event)

      { // console.log(event.name); listOfEvents.append("<li><a href='#'>" + event.name + "</a>"); }

      );
      listOfEvents.listview("refresh");
      });

            scabanovich Viacheslav Kabanovich (Inactive)
            bsutter@redhat.com Burr Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: