-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request