penguin-save-button
v0.0.2
Published
A simple save-button component for penguin.
Downloads
2
Maintainers
Readme
penguin-save-button
A simple save button for penguin.js.
Installation
$ npm i -S penguin-save-button
Then edit your package.json
file to include the component.
{
"penguin": {
"components": {
"SaveButton": "penguin-save-button"
}
}
}
Usage
<button data-component='SaveButton'>
Save
</button>
This component registers an onclick
handler on the target element and triggers ctx.save()
.