1 Jun 2012 2:05 PM #1
Unanswered: Generic function to set attribute of a component?
Is there a generic function to set attribute of a component? For instance setAttr or setAttribute?
My specific need is to set the chart type i.e. switch the chart type from, say, 'scatter' to 'line'.
I know there are some setter functions like setHtml(), but those don't exist for all attributes.
3 Jun 2012 1:42 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
To do that it is best to remove the chart and add in a new chart with the config you want.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.