Results 1 to 2 of 2

Thread: Custom Properties Help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jan 2009
    Location
    US
    Posts
    46
    Vote Rating
    0
      0  

    Default 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
    548
    Vote Rating
    44
      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.

Tags for this Thread

Posting Permissions

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