Custom Events in templates: a potential new feature being considered.
const onenter = /* impl TBD */
const stream = new Subject<string>();
target.innerHTML = rml`
<button ${onenter}="${stream}">
`;
This might facilitate, abstract away or offer an alternative to some of the work currently performed by Event Adapters:
const OnEnterValue = inputPipe(
filter(e=>e.key == 'Enter'),
map(e=>e.target.value),
);
const stream = new Subject<string>();
target.innerHTML = rml`
<button oninput="${ OnEnterValue( stream )}">
`;
More analysis required.
Custom Events in templates: a potential new feature being considered.
This might facilitate, abstract away or offer an alternative to some of the work currently performed by Event Adapters:
More analysis required.