Results 1 to 3 of 3

Thread: Does extjs classes have anything like static constructors?

  1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    96
    Vote Rating
    0
      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
      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
      0  

    Default

    Thanks. that is exactly what I am looking for.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •