Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Location
    London, UK
    Posts
    32
    Vote Rating
    1
    markofsine is on a distinguished road

      0  

    Post Component Config - Add custom property issues

    In certain instances you may need to add custom properties, either when the property is missing, or perhaps for your own usage.
    This works fine for a basic 'string' type property, but what if you want to add other types of properties, such as:
    Array,
    as in [ 'val1', 'val2' ]
    function reference,
    as in this.onSomeFunction
    inline function (closure),
    as in function() { return 'hello'; }
    Integer values
    as in 44 - (although a string might work for this it is not clean)
    Boolean

    In all the above cases, the value generated is wrapped in quotes. There should be some method to add the type of properties.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    139
    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 aconran is a splendid one to behold

      0  

    Default

    The designer will detect what type of property you add and it defaults to string.

    If you type "myCustomProperty" and click add it will add a custom property with type of string.

    If you type "myCustomArray: ['val1', 'val2']" and click add it will add a custom property with type of array.

    Etc
    Aaron Conran
    @aconran

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    139
    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 aconran is a splendid one to behold

      0  

    Default

    Marking this bug thread as closed. If there anything you notice that doesn't work as I stated above, please let us know.
    Aaron Conran
    @aconran

  4. #4
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default

    Perhaps we need a way to click add (with nothing in the filter) that pops up a nice dialog to choose type and enter name and value?
    Phil Strong
    @philstrong

Thread Participants: 2