Results 1 to 7 of 7

Thread: PropertyTree component?

  1. #1
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default PropertyTree component?

    I know that there is PropertyGrid component, but I need to edit complex object and I would like to use tree to present it, but I was unable to find PropertyTree component.

    How can I edit complex object in PropertyGrid?

    This isn't working for me:

    PHP Code:
    Ext.application({
        
    name'Fiddle',
        
    launch: function() {
            
    Ext.create('Ext.grid.property.Grid', {
                
    title'Properties Grid',
               
    hideHeadersfalse,
                
    width300,
                
    renderToExt.getBody(),
                
    source: {
                    
    "Name""Test",
                    
    "Description": {
                        
    "AA""text1",
                        
    "BB""text2",
                        
    "CC""text3"
                    
    }
                }
            });
        }}); 

  2. #2
    Ext JS Premium Member
    Join Date
    Oct 2009
    Posts
    95
    Answers
    8

    Default

    I think what you're looking for is a custom editor on your field. That's accomplished with the sourceConfig paramater.

    http://docs.sencha.com/extjs/5.0/api...g-sourceConfig

  3. #3
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default

    Quote Originally Posted by hhangus View Post
    I think what you're looking for is a custom editor on your field. That's accomplished with the sourceConfig paramater.

    http://docs.sencha.com/extjs/5.0/api...g-sourceConfig
    Actually what I'm looking for is component similar to PropertyGrid.
    I need to be able to set complex object as source, modify it and get it back.

    I managed to do object read part, but I would like to "pack it" as a component. Besides I need to add object modification part.

    Here is part I have for now:

    Maybe someone did that already? I would like to avoid reinventing the wheel

  4. #4
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default

    bump

  5. #5
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default

    bump

  6. #6
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default

    bump

  7. #7
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    260
    Answers
    6

    Default

    bump

Posting Permissions

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