https://github.com/paraboly/pwc-warning-service
https://github.com/paraboly/pwc-warning-service
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraboly/pwc-warning-service
- Owner: Paraboly
- License: mit
- Created: 2019-11-22T10:47:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-22T10:47:58.000Z (over 6 years ago)
- Last Synced: 2025-02-15T14:54:16.719Z (over 1 year ago)
- Language: TypeScript
- Size: 76.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/Paraboly/pwc-web-component-template)
[](https://www.npmjs.com/package/@paraboly/pwc-web-component-template)
[](https://www.npmjs.com/package/@paraboly/pwc-web-component-template)

[](https://opensource.org/licenses/MIT)
## [Live Codepen Example](https://codepen.io/wrathchaos/pen/dyyvRzM)
## Installation
### Script tag
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc
### Node Modules
- Run `npm install @paraboly/pwc-web-component-template --save`
- Put a script tag similar to this `` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc
### In a stencil-starter app
- Run `npm install @paraboly/pwc-web-component-template --save`
- Add an import to the npm packages `import @paraboly/pwc-web-component-template;`
- Then you can use the element anywhere in your template, JSX, html etc
# Usage
## Basic Usage
This is just an example from pwc-animated-checkbox, you need to change it !
```html
```
## Checkbox onCheckChange Listener Usage
### JS Way
This is just an example from pwc-animated-checkbox, you need to change it !
```js
// Multiple Checkboxes
const pwcCheckboxes = document.querySelectorAll("pwc-animated-checkbox");
pwcCheckboxes.forEach(element => {
element.addEventListener("checkedEvent", event => {
console.log("Event: ", event.detail);
});
})
// Selects the first checkbox
const pwcCheckbox = document.querySelector("pwc-animated-checkbox");
pwcCheckbox.addEventListener("checkedEvent", event => {
console.log("First Element Event: ", event.detail);
```
## Future Plans
- [x] ~~Documentation~~
- [x] ~~LICENSE~~
- [ ] Color Customization
- [ ] Animation Bug Fix
## Authors
Author, author@work_email.com | author@personal_email.com
## License
WebComponent PWC README Boilerplate is available under the MIT license. See the LICENSE file for more info.