I want to create custom ExtJS form field components using other ExtJS components in it (e.g. TreePanel). How can I do it most easily?
I\'ve read doc
I've done this a few times. Here is the general process/pseudo-code I use:
afterrender of the field, hide the textfield, and create a wrapping element around this.el with this.wrap = this.resizeEl = this.positionEl = this.el.wrap()this.wrap (e.g. using renderTo: this.wrap in the config)getValue and setValue to talk to the component(s) you rendered manuallyresize listener if your form's layout changesbeforeDestroy method!I can't wait to switch our codebase to ExtJS 4, where these kinds of things are easy.
Good luck!