Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    32
    Vote Rating
    0
    metas is on a distinguished road

      0  

    Default Much inconvenient to encapsulate a new component when extending from one in ext lib

    Much inconvenient to encapsulate a new component when extending from one in ext lib


    1, No function list to choose and overriding. Which could be similar to "events" tab.

    2, Cannot support coding in constructor "initComponent()"
    -->

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,323
    Vote Rating
    187
    ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold

      0  

    Default


    Create an override class:

    1. Select your class then switch to code view.
    2. Create overrdide.
    3. Select override class
    4. Overrode initComponent() and whatever method or field you want.

    x1.jpg

    x2.png

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!
    -->

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    32
    Vote Rating
    0
    metas is on a distinguished road

      0  

    Default


    Thanks ssamayoa,

    But I'd like to use extending instead of overriding.
    -->

  4. #4
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,323
    Vote Rating
    187
    ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold ssamayoa is a splendid one to behold

      0  

    Default


    I just realized with that limitation in designer.

    You should be able to drop a custom component in the same project directly in the view node and an extension should be created, now that confuses designer.

    Override for the moment is enough for me but definitely I will need an extend mechanism in the future.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!
    -->

  5. #5
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    32
    Vote Rating
    0
    metas is on a distinguished road

      0  

    Thumbs up


    Correct. I am using "Override" now. It provides us a chance to write a new file. It's not read only.

    Thanks,
    Metas
    -->

Thread Participants: 1