A composable class for managing functionality for secret blocks within DocumentSheets.
DocumentSheet
const secrets = new HTMLSecret({ selector: "section.secret[id]", callbacks: { content: this._getSecretContent.bind(this), update: this._updateSecret.bind(this) }});secrets.bind(html); Copy
const secrets = new HTMLSecret({ selector: "section.secret[id]", callbacks: { content: this._getSecretContent.bind(this), update: this._updateSecret.bind(this) }});secrets.bind(html);
Configuration options.
Add event listeners to the targeted secret blocks.
The HTML content to select secret blocks from.
Protected
Handle toggling a secret's revealed state.
The triggering click event.
The Document whose content was modified.
A composable class for managing functionality for secret blocks within DocumentSheets.
See
DocumentSheet
Example: Activate secret revealing functionality within a certain block of content.