1. #1
    Sencha Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    599
    Vote Rating
    31
    svenna has a spectacular aura about svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default use config object for e.g getters and setters in ExtJs

    Creating custom properties of a class is working fine, however, since the property is not added to the config object, but added "directly" to the class root via applyIf, no getters and setters are defined.

    Some times I want to move the title etc into the config as well (touch 2 style), can this be done in Architect? - without overrides?

    And - the config object itself is not visible in the inspector, and since it's
    Sven Tore Iversen

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    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 config system is only available in Touch at this time.
    Aaron Conran
    @aconran

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Hillsborough, NC
    Posts
    378
    Vote Rating
    110
    worthlutz is a jewel in the rough worthlutz is a jewel in the rough worthlutz is a jewel in the rough

      0  

    Default

    Quote Originally Posted by aconran View Post
    The config system is only available in Touch at this time.
    Is'nt this now available in Extjs 4.1?

    It is described in: www.sencha.com/learn/the-class-system/
    scroll down to "2. Configuration"

    Can we use it in Architect?

    Worth

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    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

    No, we don't yet have support for it.

    We've discussed maybe allowing users to prefix "config." when adding custom configs to indicate that it should go into a config block but we haven't done that yet.
    Aaron Conran
    @aconran

Thread Participants: 2