Web Component: j-Stash
j-Stash
The component can postpone elements without destructing and detaching from the DOM. This component can help you with dynamic content from the server side. We use the component in the Total.js FlowStream projects for the component's settings.
- jComponent
v19|v20
- elements can contain everything like components, scopes, binders, etc.
Configuration:
load
{String}
a path to the methodfunction(id, next(html/element))
that is evaluated if the content wasn't loaded before- NEW:
class
{String}
a class name for the stash container (default:hidden
)
Methods:
component.add(id, html/element)
adds new HTML/elementcomponent.clear([id])
clears specific ID (id
is optional) or clears all cached content
Author
- Peter Širka petersirka@gmail.com
- License
Created
14. january 2022
Updated
31. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com