Results 1 to 4 of 4

Thread: Mapping simple Javscript object to a table of names and values

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2

    Default Answered: Mapping simple Javscript object to a table of names and values

    Consider:

    Code:
    var o = { 
        "Color": "blue",
        "Continent": "Africa"
     };
    I want to render this as a table of two columns: names and values. The object keys go into the first column, the values into the second.

    I started down the path of the Ext grid panel for this, and I get the feeling that the technology is gigantically overkill. Am I missing something simple?

  2. You may be interested in Property Grid:
    http://dev.sencha.com/deploy/ext-4.1.../property.html

    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You may be interested in Property Grid:
    http://dev.sencha.com/deploy/ext-4.1.../property.html

    Scott.

  4. #3
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    103
    Answers
    2

    Default dynamic replacement of contents?

    Is there a way to dynamically load this with data?

  5. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    You can use store.loadData(object)

    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •