Skip to main content

GlobalOnAttributes

Trait GlobalOnAttributes 

Source
pub trait GlobalOnAttributes<V>: Sized + AddAnyAttr
where V: AttributeValue,
{
Show 68 methods // Provided methods fn onabort(self, value: V) -> Self::Output<Attr<Onabort, V>> { ... } fn onautocomplete(self, value: V) -> Self::Output<Attr<Onautocomplete, V>> { ... } fn onautocompleteerror( self, value: V, ) -> Self::Output<Attr<Onautocompleteerror, V>> { ... } fn onblur(self, value: V) -> Self::Output<Attr<Onblur, V>> { ... } fn oncancel(self, value: V) -> Self::Output<Attr<Oncancel, V>> { ... } fn oncanplay(self, value: V) -> Self::Output<Attr<Oncanplay, V>> { ... } fn oncanplaythrough( self, value: V, ) -> Self::Output<Attr<Oncanplaythrough, V>> { ... } fn onchange(self, value: V) -> Self::Output<Attr<Onchange, V>> { ... } fn onclick(self, value: V) -> Self::Output<Attr<Onclick, V>> { ... } fn onclose(self, value: V) -> Self::Output<Attr<Onclose, V>> { ... } fn oncontextmenu(self, value: V) -> Self::Output<Attr<Oncontextmenu, V>> { ... } fn oncuechange(self, value: V) -> Self::Output<Attr<Oncuechange, V>> { ... } fn ondblclick(self, value: V) -> Self::Output<Attr<Ondblclick, V>> { ... } fn ondrag(self, value: V) -> Self::Output<Attr<Ondrag, V>> { ... } fn ondragend(self, value: V) -> Self::Output<Attr<Ondragend, V>> { ... } fn ondragenter(self, value: V) -> Self::Output<Attr<Ondragenter, V>> { ... } fn ondragleave(self, value: V) -> Self::Output<Attr<Ondragleave, V>> { ... } fn ondragover(self, value: V) -> Self::Output<Attr<Ondragover, V>> { ... } fn ondragstart(self, value: V) -> Self::Output<Attr<Ondragstart, V>> { ... } fn ondrop(self, value: V) -> Self::Output<Attr<Ondrop, V>> { ... } fn ondurationchange( self, value: V, ) -> Self::Output<Attr<Ondurationchange, V>> { ... } fn onemptied(self, value: V) -> Self::Output<Attr<Onemptied, V>> { ... } fn onended(self, value: V) -> Self::Output<Attr<Onended, V>> { ... } fn onerror(self, value: V) -> Self::Output<Attr<Onerror, V>> { ... } fn onfocus(self, value: V) -> Self::Output<Attr<Onfocus, V>> { ... } fn onformdata(self, value: V) -> Self::Output<Attr<Onformdata, V>> { ... } fn oninput(self, value: V) -> Self::Output<Attr<Oninput, V>> { ... } fn oninvalid(self, value: V) -> Self::Output<Attr<Oninvalid, V>> { ... } fn onkeydown(self, value: V) -> Self::Output<Attr<Onkeydown, V>> { ... } fn onkeypress(self, value: V) -> Self::Output<Attr<Onkeypress, V>> { ... } fn onkeyup(self, value: V) -> Self::Output<Attr<Onkeyup, V>> { ... } fn onlanguagechange( self, value: V, ) -> Self::Output<Attr<Onlanguagechange, V>> { ... } fn onload(self, value: V) -> Self::Output<Attr<Onload, V>> { ... } fn onloadeddata(self, value: V) -> Self::Output<Attr<Onloadeddata, V>> { ... } fn onloadedmetadata( self, value: V, ) -> Self::Output<Attr<Onloadedmetadata, V>> { ... } fn onloadstart(self, value: V) -> Self::Output<Attr<Onloadstart, V>> { ... } fn onmousedown(self, value: V) -> Self::Output<Attr<Onmousedown, V>> { ... } fn onmouseenter(self, value: V) -> Self::Output<Attr<Onmouseenter, V>> { ... } fn onmouseleave(self, value: V) -> Self::Output<Attr<Onmouseleave, V>> { ... } fn onmousemove(self, value: V) -> Self::Output<Attr<Onmousemove, V>> { ... } fn onmouseout(self, value: V) -> Self::Output<Attr<Onmouseout, V>> { ... } fn onmouseover(self, value: V) -> Self::Output<Attr<Onmouseover, V>> { ... } fn onmouseup(self, value: V) -> Self::Output<Attr<Onmouseup, V>> { ... } fn onpause(self, value: V) -> Self::Output<Attr<Onpause, V>> { ... } fn onplay(self, value: V) -> Self::Output<Attr<Onplay, V>> { ... } fn onplaying(self, value: V) -> Self::Output<Attr<Onplaying, V>> { ... } fn onprogress(self, value: V) -> Self::Output<Attr<Onprogress, V>> { ... } fn onratechange(self, value: V) -> Self::Output<Attr<Onratechange, V>> { ... } fn onreset(self, value: V) -> Self::Output<Attr<Onreset, V>> { ... } fn onresize(self, value: V) -> Self::Output<Attr<Onresize, V>> { ... } fn onscroll(self, value: V) -> Self::Output<Attr<Onscroll, V>> { ... } fn onsecuritypolicyviolation( self, value: V, ) -> Self::Output<Attr<Onsecuritypolicyviolation, V>> { ... } fn onseeked(self, value: V) -> Self::Output<Attr<Onseeked, V>> { ... } fn onseeking(self, value: V) -> Self::Output<Attr<Onseeking, V>> { ... } fn onselect(self, value: V) -> Self::Output<Attr<Onselect, V>> { ... } fn onslotchange(self, value: V) -> Self::Output<Attr<Onslotchange, V>> { ... } fn onstalled(self, value: V) -> Self::Output<Attr<Onstalled, V>> { ... } fn onsubmit(self, value: V) -> Self::Output<Attr<Onsubmit, V>> { ... } fn onsuspend(self, value: V) -> Self::Output<Attr<Onsuspend, V>> { ... } fn ontimeupdate(self, value: V) -> Self::Output<Attr<Ontimeupdate, V>> { ... } fn ontoggle(self, value: V) -> Self::Output<Attr<Ontoggle, V>> { ... } fn onvolumechange(self, value: V) -> Self::Output<Attr<Onvolumechange, V>> { ... } fn onwaiting(self, value: V) -> Self::Output<Attr<Onwaiting, V>> { ... } fn onwebkitanimationend( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationend, V>> { ... } fn onwebkitanimationiteration( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationiteration, V>> { ... } fn onwebkitanimationstart( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationstart, V>> { ... } fn onwebkittransitionend( self, value: V, ) -> Self::Output<Attr<Onwebkittransitionend, V>> { ... } fn onwheel(self, value: V) -> Self::Output<Attr<Onwheel, V>> { ... }
}
Expand description

Provides methods for HTML event listener attributes.

Provided Methods§

Source

fn onabort(self, value: V) -> Self::Output<Attr<Onabort, V>>

Adds the HTML onabort attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onautocomplete(self, value: V) -> Self::Output<Attr<Onautocomplete, V>>

Adds the HTML onautocomplete attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onautocompleteerror( self, value: V, ) -> Self::Output<Attr<Onautocompleteerror, V>>

Adds the HTML onautocompleteerror attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onblur(self, value: V) -> Self::Output<Attr<Onblur, V>>

Adds the HTML onblur attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oncancel(self, value: V) -> Self::Output<Attr<Oncancel, V>>

Adds the HTML oncancel attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oncanplay(self, value: V) -> Self::Output<Attr<Oncanplay, V>>

Adds the HTML oncanplay attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oncanplaythrough(self, value: V) -> Self::Output<Attr<Oncanplaythrough, V>>

Adds the HTML oncanplaythrough attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onchange(self, value: V) -> Self::Output<Attr<Onchange, V>>

Adds the HTML onchange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onclick(self, value: V) -> Self::Output<Attr<Onclick, V>>

Adds the HTML onclick attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onclose(self, value: V) -> Self::Output<Attr<Onclose, V>>

Adds the HTML onclose attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oncontextmenu(self, value: V) -> Self::Output<Attr<Oncontextmenu, V>>

Adds the HTML oncontextmenu attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oncuechange(self, value: V) -> Self::Output<Attr<Oncuechange, V>>

Adds the HTML oncuechange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondblclick(self, value: V) -> Self::Output<Attr<Ondblclick, V>>

Adds the HTML ondblclick attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondrag(self, value: V) -> Self::Output<Attr<Ondrag, V>>

Adds the HTML ondrag attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondragend(self, value: V) -> Self::Output<Attr<Ondragend, V>>

Adds the HTML ondragend attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondragenter(self, value: V) -> Self::Output<Attr<Ondragenter, V>>

Adds the HTML ondragenter attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondragleave(self, value: V) -> Self::Output<Attr<Ondragleave, V>>

Adds the HTML ondragleave attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondragover(self, value: V) -> Self::Output<Attr<Ondragover, V>>

Adds the HTML ondragover attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondragstart(self, value: V) -> Self::Output<Attr<Ondragstart, V>>

Adds the HTML ondragstart attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondrop(self, value: V) -> Self::Output<Attr<Ondrop, V>>

Adds the HTML ondrop attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ondurationchange(self, value: V) -> Self::Output<Attr<Ondurationchange, V>>

Adds the HTML ondurationchange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onemptied(self, value: V) -> Self::Output<Attr<Onemptied, V>>

Adds the HTML onemptied attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onended(self, value: V) -> Self::Output<Attr<Onended, V>>

Adds the HTML onended attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onerror(self, value: V) -> Self::Output<Attr<Onerror, V>>

Adds the HTML onerror attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onfocus(self, value: V) -> Self::Output<Attr<Onfocus, V>>

Adds the HTML onfocus attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onformdata(self, value: V) -> Self::Output<Attr<Onformdata, V>>

Adds the HTML onformdata attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oninput(self, value: V) -> Self::Output<Attr<Oninput, V>>

Adds the HTML oninput attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn oninvalid(self, value: V) -> Self::Output<Attr<Oninvalid, V>>

Adds the HTML oninvalid attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onkeydown(self, value: V) -> Self::Output<Attr<Onkeydown, V>>

Adds the HTML onkeydown attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onkeypress(self, value: V) -> Self::Output<Attr<Onkeypress, V>>

Adds the HTML onkeypress attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onkeyup(self, value: V) -> Self::Output<Attr<Onkeyup, V>>

Adds the HTML onkeyup attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onlanguagechange(self, value: V) -> Self::Output<Attr<Onlanguagechange, V>>

Adds the HTML onlanguagechange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onload(self, value: V) -> Self::Output<Attr<Onload, V>>

Adds the HTML onload attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onloadeddata(self, value: V) -> Self::Output<Attr<Onloadeddata, V>>

Adds the HTML onloadeddata attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onloadedmetadata(self, value: V) -> Self::Output<Attr<Onloadedmetadata, V>>

Adds the HTML onloadedmetadata attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onloadstart(self, value: V) -> Self::Output<Attr<Onloadstart, V>>

Adds the HTML onloadstart attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmousedown(self, value: V) -> Self::Output<Attr<Onmousedown, V>>

Adds the HTML onmousedown attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmouseenter(self, value: V) -> Self::Output<Attr<Onmouseenter, V>>

Adds the HTML onmouseenter attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmouseleave(self, value: V) -> Self::Output<Attr<Onmouseleave, V>>

Adds the HTML onmouseleave attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmousemove(self, value: V) -> Self::Output<Attr<Onmousemove, V>>

Adds the HTML onmousemove attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmouseout(self, value: V) -> Self::Output<Attr<Onmouseout, V>>

Adds the HTML onmouseout attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmouseover(self, value: V) -> Self::Output<Attr<Onmouseover, V>>

Adds the HTML onmouseover attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onmouseup(self, value: V) -> Self::Output<Attr<Onmouseup, V>>

Adds the HTML onmouseup attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onpause(self, value: V) -> Self::Output<Attr<Onpause, V>>

Adds the HTML onpause attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onplay(self, value: V) -> Self::Output<Attr<Onplay, V>>

Adds the HTML onplay attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onplaying(self, value: V) -> Self::Output<Attr<Onplaying, V>>

Adds the HTML onplaying attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onprogress(self, value: V) -> Self::Output<Attr<Onprogress, V>>

Adds the HTML onprogress attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onratechange(self, value: V) -> Self::Output<Attr<Onratechange, V>>

Adds the HTML onratechange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onreset(self, value: V) -> Self::Output<Attr<Onreset, V>>

Adds the HTML onreset attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onresize(self, value: V) -> Self::Output<Attr<Onresize, V>>

Adds the HTML onresize attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onscroll(self, value: V) -> Self::Output<Attr<Onscroll, V>>

Adds the HTML onscroll attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onsecuritypolicyviolation( self, value: V, ) -> Self::Output<Attr<Onsecuritypolicyviolation, V>>

Adds the HTML onsecuritypolicyviolation attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onseeked(self, value: V) -> Self::Output<Attr<Onseeked, V>>

Adds the HTML onseeked attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onseeking(self, value: V) -> Self::Output<Attr<Onseeking, V>>

Adds the HTML onseeking attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onselect(self, value: V) -> Self::Output<Attr<Onselect, V>>

Adds the HTML onselect attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onslotchange(self, value: V) -> Self::Output<Attr<Onslotchange, V>>

Adds the HTML onslotchange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onstalled(self, value: V) -> Self::Output<Attr<Onstalled, V>>

Adds the HTML onstalled attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onsubmit(self, value: V) -> Self::Output<Attr<Onsubmit, V>>

Adds the HTML onsubmit attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onsuspend(self, value: V) -> Self::Output<Attr<Onsuspend, V>>

Adds the HTML onsuspend attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ontimeupdate(self, value: V) -> Self::Output<Attr<Ontimeupdate, V>>

Adds the HTML ontimeupdate attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn ontoggle(self, value: V) -> Self::Output<Attr<Ontoggle, V>>

Adds the HTML ontoggle attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onvolumechange(self, value: V) -> Self::Output<Attr<Onvolumechange, V>>

Adds the HTML onvolumechange attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwaiting(self, value: V) -> Self::Output<Attr<Onwaiting, V>>

Adds the HTML onwaiting attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwebkitanimationend( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationend, V>>

Adds the HTML onwebkitanimationend attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwebkitanimationiteration( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationiteration, V>>

Adds the HTML onwebkitanimationiteration attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwebkitanimationstart( self, value: V, ) -> Self::Output<Attr<Onwebkitanimationstart, V>>

Adds the HTML onwebkitanimationstart attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwebkittransitionend( self, value: V, ) -> Self::Output<Attr<Onwebkittransitionend, V>>

Adds the HTML onwebkittransitionend attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Source

fn onwheel(self, value: V) -> Self::Output<Attr<Onwheel, V>>

Adds the HTML onwheel attribute to the element.

Note: This is the HTML attribute, which takes a JavaScript string, not an on: listener that takes application logic written in Rust.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<El, At, Ch, V> GlobalOnAttributes<V> for HtmlElement<El, At, Ch>