https://github.com/jsmithdev/extenda-element
LWC base class
https://github.com/jsmithdev/extenda-element
Last synced: about 1 month ago
JSON representation
LWC base class
- Host: GitHub
- URL: https://github.com/jsmithdev/extenda-element
- Owner: jsmithdev
- Created: 2023-08-10T04:58:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T20:07:42.000Z (about 2 years ago)
- Last Synced: 2025-01-28T23:15:08.857Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# extenda-element
Extends LightningElement with some useful methods.
| Syntax | Description | Usage |
| :--- | :--- | :--- |
| dispatchEventFromExtended | dispatch event workaround | `this.dispatchEventFromExtended()` |
| debug | log out data | `this.debug()` |
| handleError | handle, parse, toast errors | `this.handleError()` |
| toast | toast messages to user | `this.toast()` |
## Usage
```js
import ExtendaElement from 'c/extendaElement';
export default class MyComponent extends ExtendaElement {
}
```
---
Coded w/ ❤️ by [Jamie Smith](https://jsmith.dev)