Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    214
    Vote Rating
    3
    bseddon is on a distinguished road

      0  

    Default Problem entering custom property

    Problem entering custom property


    The TreeStore root node configuration is not exposed in the designer so I've been adding it as a custom property.

    root: {text: 'Name', id:'', expanded:false}

    Now I want to assign the 'id' property of the root node with the value of the global variable 'Ext.Photos.rootNode':

    root: {text: 'Name', id:Ext.Photos.rootNode, expanded:false}

    However the designer then treats the whole value as a string:

    root: '{text: "Name", id:Ext.Photos.rootNode, expanded:false}'

    It seems there are restrictions around the use of variables in custom properties:

    Ext.Photos (OK)
    Ext.rootNode (OK)
    Ext.Photos.rootNode (not OK)
    Photos.rootNode (not OK)

    Anything starting with 'Ext' is OK anything else causes the property to be converted to a string
    Only one level of object is allowed.

    Is this intended?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    We don't yet support variables. They will be treated as strings.
    Aaron Conran
    @aconran
    Sencha Architect Development Team