j-Releaser
The component can release after some time own content (DOM) + memory. We recommend to use it for j-DataGrid, j-CodeMirror, j-CloudEditor, etc..
Configuration:
if {String}must contain a value for comparing with the modeldelay {Number}delay for removing ofinvisibleclass (default:500)release {Number}delay for releasing of the content in idle time (default:10000)bindvisible {Boolean}it evalutes the content if the component is visible (default:false)released {String}a link to thefunction(component_element)when the content is releasedrender {String}a link to thefunction(component_element)when the content is going to render
Example:
<ui-component name="releaser" path="common.form" config="if:userform">
<script type="text/html">
<ui-component name="datagrid" path=".......">
<SCR type="text/html">
YOUR COLUMNS
</SCR>
</ui-component>
</script>
</Use it with <ui-component name="releaser">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="exec"></ui-component>
<ui-component name="releaser" path="common.form" config="if:userform;release:2000">
<script type="text/html">
<i class="ti ti-thumbs-up"></i> THE CONTENT IS RENDERED
</script>
</ui-component>
<hr />
<button class="exec" data-exec="releaser_show">Show</button>
<button class="exec" data-exec="releaser_release">Release (2 sec)</button>
<script>
function releaser_show() {
SET('common.form', 'userform');
}
function releaser_release() {
NUL('common.form');
}
</script>