0.0.3 • Published 3 years ago

@gollum-dom/lovelace-script-mod v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

lovelace-script-mod

Add custom script in lovelace card

Usage

Add script in your configuration / Lovelace / resources:

https://unpkg.com/@gollum-dom/lovelace-script-mod

And in your card configuration:

type: 'TYPE'
[...]
custom_script:
  before: >
    (element, changedProperties) => { console.log('before_script', element,
    changedProperties) }
  after: >
    (element, changedProperties) => { console.log('after_script', element,
    changedProperties) }