Trait webcomponent::CustomElement[][src]

pub trait CustomElement {
    fn new(element: HTMLElement) -> Self
    where
        Self: Sized + Sync + Send + 'static
; fn register(name: &str)
    where
        Self: Sized + Sync + Send + 'static
, { ... }
fn observed_attributes() -> Vec<&'static str> { ... }
fn created(&mut self) { ... }
fn connected(&mut self) { ... }
fn disconnected(&mut self) { ... }
fn attribute_changed(
        &mut self,
        _name: String,
        _old_value: Option<String>,
        _new_value: Option<String>
    ) { ... } }

Required methods

fn new(element: HTMLElement) -> Self where
    Self: Sized + Sync + Send + 'static, 
[src]

Loading content...

Provided methods

fn register(name: &str) where
    Self: Sized + Sync + Send + 'static, 
[src]

fn observed_attributes() -> Vec<&'static str>[src]

fn created(&mut self)[src]

fn connected(&mut self)[src]

fn disconnected(&mut self)[src]

fn attribute_changed(
    &mut self,
    _name: String,
    _old_value: Option<String>,
    _new_value: Option<String>
)
[src]

Loading content...

Implementors

Loading content...