-
20 Nov 2012 2:19 AM #1
Answered: how to use ptype instead of pluginId in Ext.AbstractComponnet.getPlugin() ?
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.
-
Best Answer Posted by mitchellsimoens
-
22 Nov 2012 6:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
getPlugin only accepts the pluginId. You would just need to loop through the plugins to find the one you need.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Nov 2012 6:37 AM #3
so how i can get a plugin without pluginId? i just have the ptype
-
23 Nov 2012 6:45 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
- Answers
- 3100
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
25 Nov 2012 9:03 AM #5
thanks a lot .
i think sencha needs to improve getplugin method to handle ptype like pluginId


Reply With Quote