TWSSnippet
Represents a web snippet that can be rendered in a TWSView.
Parameters
A unique identifier for the snippet.
The URL of the snippets content.
custom HTTP headers to include with the request.
A list of resources (CSS/JS) to inject.
Custom properties for the snippet. These properties can be used for a variety of purposes, such as displaying a snippet's title, sorting snippets by a sort key, or providing additional metadata for snippet handling. If the engine is set to TWSEngine.MUSTACHE, all provided properties are also used for Mustache template processing while displaying snippet in TWSView.
Specifies how the snippet content is processed.
A counter to manually trigger a redraw of the snippet in TWSView
. Useful when the HTML content changes but the snippet itself remains unchanged. Incrementing this forces TWSView
to redraw and reflect the updated HTML.