Results 1 to 2 of 2

Thread: Sub-classing grid and form

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    London, UK
    Vote Rating

    Default Sub-classing grid and form

    I have added functionality to my new extended grid and form classes that I want available across all grids and forms in my entire application.
    These are fairly fundamental changes and require overriding a number of the internal functions of the base classes (eg. To implement proper model handling and validation on forms)
    The idea is that with time these new bases classes will be updated with all shared functionality to ensure a consistent look and feel across the entire application.

    The problem:
    Designer does not allow this to be done in any simple way. My project is broken down in to around 40+ projects (per controller) and even if I used the import component functionality, every time I changed the base class I would need to re-import.
    Also these classes have a number of properties and methods that the designer does not recognize.

    Has anyone done a similar type of thing...? What thoughts / suggestions...

    While not ideal I am happy to refactor to use some other pattern that fits better with the designer.


  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Vote Rating


    The case of sharing a component/class across a bunch of different projects and having it automatically update in the other projects (when you open them of course) is something that we are looking into better supporting.
    Aaron Conran

Posting Permissions

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