Package Exports
- sk-spinner-antd
- sk-spinner-antd/index.js
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 (sk-spinner-antd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Skinny Widgets Spinner for Antd Theme
spinner element
npm i sk-spinner sk-spinner-antd --savethen add the following to your html
<sk-config
theme="antd"
base-path="/node_modules/sk-core/src"
theme-path="/node_modules/sk-theme-antd"
></sk-config>
<sk-button id="skButton" button-type="primary">Show Dialog</sk-button>
<sk-spinner id="skSpinner"></sk-spinner>
<script type="module">
import { SkSpinner } from '/node_modules/sk-spinner/sk-spinner.js';
import { SkButton } from '/node_modules/sk-button/sk-button.js';
customElements.define('sk-spinner', SkSpinner);
customElements.define('sk-button', SkButton);
skButton.addEventListener('click', (event) => {
skSpinner.dispatchEvent(new CustomEvent('toggle'));
});
</script>template
id: SkSpinnerTpl