snapdom-plugin-template
v1.0.0
Published
A starter template for building SnapDOM plugins
Maintainers
Readme
snapdom-plugin-my-plugin
A SnapDOM plugin that ...
Install
npm i snapdom-plugin-my-pluginUsage
import { snapdom } from '@zumer/snapdom';
import { myPlugin } from 'snapdom-plugin-my-plugin';
const result = await snapdom(element, {
plugins: [myPlugin({ example: 'value' })]
});Options
| Option | Type | Default | Description |
|-----------|--------|-------------|-----------------------|
| example | string | 'default' | Describe this option |
Hooks used
afterClone— modifies the cloned DOM tree
License
MIT
