[][src]Trait webcomponent::CustomElement

pub trait CustomElement {
    fn new(element: JSObject) -> 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: JSObject) -> Self where
    Self: Sized + Sync + Send + 'static, 

Loading content...

Provided methods

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>
)

Loading content...

Implementors

Loading content...