How to use the hybrids.dispatch function in hybrids

To help you get started, we’ve selected a few hybrids examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vogloblinsky / web-components-benchmark / todomvc / hybrids / js / todo-input.js View on Github external
const onSubmit = (host, e) => {
    e.preventDefault();
    dispatch(host, 'submit', {
        detail: host.val
    });
    let $input = host.shadowRoot.querySelector('#new-todo');
    $input.value = '';
    $input.blur();
}
github vogloblinsky / web-components-benchmark / todomvc / hybrids / js / todo-item.js View on Github external
const onchange = (host, event) => {
    dispatch(host, 'checked', {
        detail: parseInt(host.index)
    });
};
github vogloblinsky / web-components-benchmark / todomvc / hybrids / js / todo-item.js View on Github external
const onclick = (host, event) => {
    dispatch(host, 'removed', {
        detail: parseInt(host.index)
    });
};

hybrids

A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture

MIT
Latest version published 2 months ago

Package Health Score

85 / 100
Full package analysis