-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I'm trying to listen to the cancel event of an HTMLInputElement, and instead of using the .oncancel setter directly:
Lines 499 to 500 in 51e594b
external set oncancel(EventHandler value); external EventHandler get oncancel;
I'm trying to add an onCancel stream to an web.HTMLInputElement with something like the following:
extension AddOnCancelStreamToInputElement on web.HTMLInputElement {
web.ElementStream<web.Event> get onCancel => const
web.EventStreamProvider<web.Event>('cancel').forElement(this);
}However, I get the following error:
Undefined class 'ElementStream'.
Try changing the name to the name of an existing class, or creating a class with the name 'ElementStream'. dart(undefined_class)
2 questions here:
- Can an
onCancelStream be added to theHTMLInputElementclass somewhere here. - and/or expose the
ElementStream<T>so I can add my own with the same helpers available for package:web.
Metadata
Metadata
Assignees
Labels
No labels