[][src]Trait mika::dom::traits::GlobalAttributes

pub trait GlobalAttributes: Element {
    fn id(self, value: &str) -> Self { ... }
fn focus_signal<S>(self, signal: S) -> Self
    where
        S: Signal<Item = bool> + 'static
, { ... }
fn class(self, space_separated_classes: &str) -> Self { ... }
fn class_signal<S>(self, class_name: &str, signal: S) -> Self
    where
        S: Signal<Item = bool> + 'static
, { ... }
fn on_blur<F>(self, hanlder: F) -> Self
    where
        F: Fn(FocusEvent) + 'static
, { ... }
fn on_focus<F>(self, hanlder: F) -> Self
    where
        F: Fn(FocusEvent) + 'static
, { ... }
fn on_click<F>(self, hanlder: F) -> Self
    where
        F: Fn(MouseEvent) + 'static
, { ... }
fn on_double_click<F>(self, hanlder: F) -> Self
    where
        F: Fn(MouseEvent) + 'static
, { ... }
fn on_change<F>(self, hanlder: F) -> Self
    where
        F: Fn(Event) + 'static
, { ... }
fn on_key_press<F>(self, hanlder: F) -> Self
    where
        F: Fn(KeyboardEvent) + 'static
, { ... } }

Provided methods

fn id(self, value: &str) -> Self

fn focus_signal<S>(self, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 

fn class(self, space_separated_classes: &str) -> Self

fn class_signal<S>(self, class_name: &str, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 

fn on_blur<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 

fn on_focus<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 

fn on_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 

fn on_double_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 

fn on_change<F>(self, hanlder: F) -> Self where
    F: Fn(Event) + 'static, 

fn on_key_press<F>(self, hanlder: F) -> Self where
    F: Fn(KeyboardEvent) + 'static, 

Loading content...

Implementors

impl<T: Element> GlobalAttributes for T[src]

fn id(self, value: &str) -> Self[src]

fn focus_signal<S>(self, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 
[src]

fn class(self, space_separated_classes: &str) -> Self[src]

fn class_signal<S>(self, class_name: &str, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 
[src]

fn on_blur<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 
[src]

fn on_focus<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 
[src]

fn on_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 
[src]

fn on_double_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 
[src]

fn on_change<F>(self, hanlder: F) -> Self where
    F: Fn(Event) + 'static, 
[src]

fn on_key_press<F>(self, hanlder: F) -> Self where
    F: Fn(KeyboardEvent) + 'static, 
[src]

Loading content...