Self ng.Component.set_html (Mixed html, [String append = overwrite], [Boolean eval_script = false]) vs. 1.1.0 Full+Lite

Sets the component HTML code. Review ng.Element.set_html for more details.

Parameters

Mixed html Required vs. 1.1.0 Full+Lite
The html code. This can be one of the following types:
  • String: the html code as a string
  • Array: an array of html fragments
  • Object: objects or classes must include a method called render_html that will return the html code as a string or array.
String append (Optional - Default: overwrite) vs. 1.1.0 Full+Lite
Where to put the new html code. It can be one of the following:
  • overwrite: overwrite the current html with the new code.
  • bottom: append the new code to the bottom of the current html.
  • top: append the new code to the top of the current html.
Boolean eval_script (Optional - Default: false) vs. 1.1.0 Full+Lite
Option to evaluate any script tags in the html code.

Return

Self Required vs. 1.1.0 Full+Lite
The original ng.Component object.

Examples

Using ng.Component.set_html(html, apnd, evlscpt)
Demo: