Forum Discussion
irach15
Maven
cike,
actually, in my case I'm able to do it and it's possible ;-)
I'm adding one component inside another, both of them are custom components
<div> <div id="hottopics"></div> </div> <@liaAddScript> ;(function($){ // add another component var topics = $('#hottopics'); topics.append('<@component id="test-plug-to-js"></@component>'); console.log('i got through!'); })(LITHIUM.jQuery); </@liaAddScript>
the only trick is to strip-out white-spacing and line breaks in test-plug-to-js component.
Wrap your component in
<@compress single_line=true>...</@compress>
to get rid off line spacing
http://freemarker.org/docs/dgui_misc_whitespace.html
Related Content
- 4 years agoInactive User
- 6 months ago