-
22 Feb 2011 11:52 PM #1
applyTo non exist ??
applyTo non exist ??
It appears that the property applyTo no longer exists.
The functionality has been removed or is there an equivalent property?
Thanks
-
23 Feb 2011 3:01 PM #2
I'd like to know the future of applyTo as well.
I noticed that the config option was no longer in the docs. However, it still works at least in some cases. I tried a simple test with a Panel and a div with some text in it and it worked just fine.
Which component were you trying to use applyTo on?
-
24 Feb 2011 4:59 AM #3
Inside the source I found this comment.
I would say that applyTo will no longer be supported.
Code:// This needs to die a horrible death. For now it's a replaceMarkup, I can't see supporting this methodology going forward. /** * Apply this component to existing markup that is valid. With this function, no call to render() is required. * @param {String/HTMLElement} el */ applyToMarkup: function(el) { this.allowDomMove = false; this.render(Ext.getDom(el).parentNode, null, true); },
-
24 Feb 2011 5:43 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
It's not that easy anymore to do an applyTo because of the way the rendering process has been restructured in Ext 4.
That is why applyToMarkup currently replaces the specified element with the component (which is of course not the correct behavior).
-
24 Feb 2011 10:52 AM #5Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 8
It may be a good idea to have configs, methods, events that have become obsolete, to still be in the ExtJS 4 API docs. Greyed out or something and mentioning the new way of doing it in ExtJS 4.
-
24 Feb 2011 11:32 PM #6
This is a very big problem for me.
100% of my apps use a make-up already exists at the field level.
(I use Lotus Domino).
I wish I had an official response to the development team about the future support of the method applyTo.
Thanks
-
26 Feb 2011 7:30 AM #7
I can certainly understand the challenge you face of keeping the architecture clean, fast, and stable. That said, I'm pretty sure there are a lot of Ext JS applications out there that rely on applyTo for legacy-rendered applications (my own included).
If applyTo is not supported, some other means of transforming HTML will be needed, or I'll have a hard time believing sencha's claim (when announcing Ext JS 4) that the vast majority of applications would just run with the compatibility layer/adapter in place.
-
29 Nov 2011 3:55 AM #8
-
22 Aug 2012 12:03 AM #9
I replaced "applyTo" by "transform" for a combobox replacing a textField, and it works !
Hope this helps...
-
30 Aug 2012 6:20 AM #10
Similar Threads
-
Autogrid in 3.0 does it exist ?
By michaelc in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 16 Feb 2011, 9:48 AM -
Window exist?
By danielbertini in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 3 Nov 2010, 10:49 PM -
Does CheckColumn exist?
By kolaloka in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 4 Oct 2010, 4:40 AM -
ScriptTagProxy does not exist?
By teddyjas in forum Ext: Q&AReplies: 3Last Post: 26 Oct 2009, 6:08 AM -
How to know the treeNode is exist?
By qiuxy in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 6 Dec 2007, 11:36 PM


Reply With Quote
