public class ScriptViewElementModelWriter extends com.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter<ScriptViewElement>
ScriptViewElement, representing <script> HTML nodes.
Script nodes may not be safely nested, and this writer will replace any nested script node by a regular
HTML node with a data-bum-ref-id attribute. The replacement node will have most original attributes,
but the id attribute holds the HTML id of an other <script> element which will contain the
actual original content.
Client-side, the BootstrapUiModule.refTarget(node) can be used to ensure you retrieve the actual target node.
Especially useful for {@link org.springframework.http.MediaType#TEXT_HTML scripts.| Constructor and Description |
|---|
ScriptViewElementModelWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
writeModel(ScriptViewElement viewElement,
com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model) |
public void writeModel(ScriptViewElement viewElement, com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model)
writeModel in interface com.foreach.across.modules.web.ui.thymeleaf.ViewElementModelWriter<ScriptViewElement>writeModel in class com.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter<ScriptViewElement>Copyright © 2020. All rights reserved.