pub fn dispatch_event(
    q_ctx: &QuickJsRealmAdapter,
    proxy: &Proxy,
    instance_id: usize,
    event_id: &str,
    event: JSValueRef
) -> Result<bool, JsError>
Expand description

dispatch an Event on an instance of a Proxy class the return value is false if event is cancelable and at least one of the event listeners which received event called Event.preventDefault. Otherwise it returns true