A composable class for managing functionality for secret blocks within DocumentSheets. {@see DocumentSheet}
Activate secret revealing functionality within a certain block of content.
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.
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}
Activate secret revealing functionality within a certain block of content.