Hybrid View

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    418
    Vote Rating
    0
    pokerking400 is on a distinguished road

      0  

    Default Plugins vs extension

    Plugins vs extension


    Another noobie question.

    What is the difference between plugins vs extensions. Why do you attach plugins only initcomponent?. why not attach it later?.

    How do i convert plugins to extension.

    Give me example and then explanation.

    Thank you very much.

    I need to create form plugin and attach to the parent later stage on demand.

    Thanks.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,915
    Vote Rating
    630
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Please have a look around before posting: http://extjs.com/forum/showthread.php?t=34021

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    418
    Vote Rating
    0
    pokerking400 is on a distinguished road

      0  

    Default


    Thanks. But my question still stands. Can we ad dplugins later stage instead during initalization?.

    Not attaching this.plugins do not work.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,915
    Vote Rating
    630
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Technically you could add plugins at a later stage, however it could lead to unintended consequences.

  5. #5
    Ext User
    Join Date
    Apr 2008
    Posts
    418
    Vote Rating
    0
    pokerking400 is on a distinguished road

      0  

    Default


    Here is my problem. I need to create form based on meta data. So it is not static store. So my dynamicform plugin has to be instantiated just before it shows to the user.

    At prenet if i attach plugin later stage , it does n't rerender the parent.

  6. #6
    Ext User
    Join Date
    Apr 2008
    Posts
    418
    Vote Rating
    0
    pokerking400 is on a distinguished road

      0  

    Default


    Called init does n't work. it does do work for invisible plugins not visible. As the parenet need to redraw. Calling render on parent also do not work.

Thread Participants: 2