-
4 Aug 2012 11:29 PM #1
How can I create custom property with custom type
How can I create custom property with custom type
in Sencha Architect I can only create a string property(custom).
how can I add a property with bool value or number value?
-
6 Aug 2012 8:14 AM #2
You can define your own custom properties and add them to the Component Config panel. Do this by typing the name of the custom property in the Filter or Quick Value Set field and clicking Add. The new property is displayed in the Custom Properties category in the panel.
By typing in myConfig and clicking Add you will add a custom property to your class.
By default, all custom configurations will be added as a string.
If you know the type of a configuration prior to adding it you can provide hinting to Sencha Architect by delimiting the key and value with a : (similar to how you would in object literal or JSON notation) prior to clicking Add.
To delete a custom property, right click on the property in the configuration grid and click Delete {propertyName}.Aaron Conran
@aconran
Sencha Architect Development Team
-
15 Oct 2012 3:28 PM #3Sencha - Sales Team
- Join Date
- Mar 2007
- Location
- Melbourne, Australia (aka GMT+10)
- Posts
- 738
- Vote Rating
- 6
examples of what you would type into the config search box before hitting 'Add' button
Code:customArray:[] or customObject:{} or customFunction:function(){} or customString:''Check out SenchaWorld.com for articles, screencasts, conference videos and more.
Sencha Technical Training : Asia Pacific Region
Code Validation : JSLint | JSONLint | JSONPLint


Reply With Quote


