[][src]Function sauron_native::builder::on_with_extractor

pub fn on_with_extractor<EVENT, WEV2UDEF, UDEF, UDEF2MSG, MSG>(
    name: &'static str,
    webevent_to_user_def: WEV2UDEF,
    user_def_to_msg: UDEF2MSG
) -> Attribute<EVENT, MSG> where
    EVENT: 'static,
    MSG: 'static,
    UDEF: 'static,
    UDEF2MSG: Fn(UDEF) -> MSG + 'static,
    WEV2UDEF: Fn(EVENT) -> UDEF + 'static, 

Create an callback event which has a function to map web_sys::Event to user event