sk-spinner
v0.2.27
Published
skinny-widgets spinner element
Downloads
236
Readme
Skinny Widgets Spinner
spinner element
npm i sk-spinner sk-spinner-jquery --save
then add the following to your html
<sk-config
theme="jquery"
base-path="/node_modules/sk-core/src"
theme-path="/node_modules/sk-theme-jquery"
></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