1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
    ritcoder is on a distinguished road

      0  

    Default Does extjs classes have anything like static constructors?

    Hi all,
    Does the new extjs class structure support static constructors? What I'm actually asking is that is there a default of getting a method to be run right after creating a class from its definition (not an instance). In this case, I can set some static fields and initialize some other values.


    regards.

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    6
    campersau1 is on a distinguished road

      1  

    Default

    Yes, you can do that by providing a createdFn in http://docs.sencha.com/ext-js/4-1/#!/api/Ext-method-define

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
    ritcoder is on a distinguished road

      0  

    Default

    Thanks. that is exactly what I am looking for.

Thread Participants: 1

Tags for this Thread