1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    1
    Vote Rating
    0
    JesseNone is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      1  

    Default


    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

  3. #3
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,071
    Vote Rating
    40
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      1  

    Default


    examples of what you would type into the config search box before hitting 'Add' button

    Code:
    customArray:[]
    or
    customObject:{}
    or
    customFunction:function(){}
    or 
    customString:''
    Attached Images
    Senior Technical Training & Mentoring

    Teahouse Training Company
    Asia Pacific Region (Official Certified Sencha Trainer)

    Check out SenchaWorld.com - The best bits from the Sencha community (videos, blogs, etc)

    Code Validation : JSLint | JSONLint | JSONPLint

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Scotland
    Posts
    107
    Vote Rating
    2
    delp is on a distinguished road

      0  

    Default


    This should go as a top tip. I was previously overriding classes to insert my own values that were not available using the UI in SA.

Thread Participants: 3

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar