webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

Bind events based on propertyValues / state #57

Closed quarkus closed 2 years ago

quarkus commented 2 years ago

add Disabled flag to events in event map to have "stateful" event binding:

Bildschirmfoto 2022-05-10 um 10 03 42

disableDownScroll is a property in this case could be anything truthy

quarkus commented 2 years ago

The same can be achieved by dynamically assembling the event map before it's returned.