Ext.ux.AccordionList
Ext.ux.AccordionList copied to clipboard
Add data through AccordianListItem
I am using AccordianList with 'useComponents' set to true.
I can display a JSON data through TreeStore, and even add a new Node with some default data (by adding it to TreeStore), but I can't figure out how to get the changed/updated data from the node.
For example: From your example: http://docs.kawanoshinobu.com/accordionlist/, in Components Tab, select Project B, and change 'Hello' to 'Good Morning', how can I update that record in TreeStore?
Not a good approach, but here what I did, when at "AccordianList", I did list = me.getAt(0).getAt(0).getAt(0)
to get the actual list, then list.getItem()
gave me all the expanded elements. Some more dirty coding and I can now add and edit item to AccordianList.
Any suggestions or pointers for a better approach to get this done?