Skip to main content

GlobalOnAttributes

Trait GlobalOnAttributes 

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§

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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".

Implementors§

§

impl<El, At, Ch, V> GlobalOnAttributes<V> for HtmlElement<El, At, Ch>
where El: ElementType + Send, At: Attribute + Send, Ch: RenderHtml + Send, V: AttributeValue,