Results 1 to 5 of 5

Thread: how to use ptype instead of pluginId in Ext.AbstractComponnet.getPlugin() ?

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    36
    Vote Rating
    0
      0  

    Default Answered: how to use ptype instead of pluginId in Ext.AbstractComponnet.getPlugin() ?

    Hi

    i want to access to a plugin which has been applied to a grid panel . i just have it's "ptype"
    so how can i get it ? i can't use Ext.AbstractComponent.getPlugin( pluginId), it's clear that the method takes pluginId . i cant add pluginId to the plugin so i should handle it just by the Plugins ptype.


    help me Please.

  2. Quote Originally Posted by mitchellsimoens View Post
    You would just need to loop through the plugins to find the one you need.
    ^^

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    getPlugin only accepts the pluginId. You would just need to loop through the plugins to find the one you need.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    36
    Vote Rating
    0
      0  

    Default

    so how i can get a plugin without pluginId? i just have the ptype

  5. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You would just need to loop through the plugins to find the one you need.
    ^^
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    36
    Vote Rating
    0
      0  

    Default

    thanks a lot .
    i think sencha needs to improve getplugin method to handle ptype like pluginId

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
  •