Package Exports
- @shardlabs/kusama-tips-widget
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@shardlabs/kusama-tips-widget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Kusama Tips Widget
Install
Using CDN: Add the following script to the end of your <head> section.
<script src="https://unpkg.com/@shardlabs/kusama-tips-widget@latest/dist/bundle.min.js"></script>Usage
Binding the widget
<script>
kusamaTipsWidget.bind(document.body, {
beneficiary: "5EhR5PRsX...",
});
</script>Use custom button element
<script>
kusamaTipsWidget.bind(document.body, {
beneficiary: "5EhR5PRsX...",
element: document.getElementById("my-button"),
});
</script>You can disable proposals by passing allowProposing: false to the options object.
<script>
kusamaTipsWidget.bind(document.body, {
beneficiary: "5EhR5PRsX...",
allowProposing: false,
});
</script>