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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •