1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    23
    Vote Rating
    0
    Bill M is on a distinguished road

      0  

    Default Example of how to extend a Ext-JS Component with custom Properties?

    Example of how to extend a Ext-JS Component with custom Properties?


    Hi,

    I am looking for an example of how to extend a Ext-JS Panel so that I can create my own object, and have it contain additonal properties that I could then modify (i.e. setters and getters) at a later time following creation of the object. The code for this object would exist in it's own file. I would like to be able to also supply some arguments at creation time to this object, and have this component capture them at creation time.

    I have had some real trouble in trying to figure out how to use initComponent to capture arguments, and if I should instead be creating my own constructor for this, or if initComponent in effect serves as the constructor for the object.

    Would really appreciate it if someone could point me at some example code that explains how to do this. I have seen some postings that border on this, but people have left chunks of code out that they think is obvious, but those "obvious" pieces are not so obvious to us Ext-JS/JavaScript newbies

    Thanks!

  2. #2
    Sencha User vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    520
    Vote Rating
    9
    vadimv will become famous soon enough

      0  

    Default


    you can check the guides from docs - the class system section.

  3. #3