Version 2.0!

This commit is contained in:
2019-11-05 00:28:13 +01:00
parent bff8a650bc
commit fd2e449001
21 changed files with 4875 additions and 619 deletions

11
src/action.js Normal file
View File

@@ -0,0 +1,11 @@
export function bindActionHandler(element, options={}) {
customElements.whenDefined("long-press").then(() => {
const longpress = document.body.querySelector("long-press");
longpress.bind(element);
});
customElements.whenDefined("action-handler").then(() => {
const actionHandler = document.body.querySelector("action-handler");
actionHandler.bind(element, options);
});
return element;
}