1. #1
    Sencha User
    Join Date
    Jan 2009
    Location
    US
    Posts
    46
    Vote Rating
    0
    zlog is on a distinguished road

      0  

    Default Custom Properties Help

    Custom Properties Help


    Hi,

    If I want to add a custom property in Sencha Architect to a view let's say... for example like testVal and I need this to contain a ternary operation like the following:
    Code:
    testVal: Ext.os.is.Android ? 0 : 100
    I add the new property, add the value and after that I see:
    Code:
    testVal: 'Ext.os.is.Android ? 0 : 100'
    If I change the type for this new property to be a numerical one, Architect complains about 'maximum length for this field is 12...' and doesn't let me to have such input.
    So what needs to be done in cases like this, can this be reported as an required functionality?

    Thank you !

  2. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    523
    Vote Rating
    43
    BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough

      0  

    Default


    at the moment, you can't put logic in a configs property value. create the property, then set the value in the init of your container or controller etc.

Thread Participants: 1

Tags for this Thread