[][src]Trait savory_html::seed_ext::ElExt

pub trait ElExt<Msg> {
    fn try_add_style(self, val: Option<Style>) -> Self;
fn set_style(self, val: Style) -> Self;
fn try_set_style(self, val: Option<Style>) -> Self;
fn and_style(self, conf: impl FnOnce(Style) -> Style) -> Self;
fn set_attribute(self, val: Attribute) -> Self;
fn try_set_attribute(self, val: Option<Attribute>) -> Self;
fn set_attributes(self, val: Attributes) -> Self;
fn and_attributes(self, conf: impl FnOnce(Attributes) -> Attributes) -> Self;
fn add_children(self, children: impl IntoIterator<Item = Node<Msg>>) -> Self;
fn try_add_children(
        self,
        children: Option<impl IntoIterator<Item = Node<Msg>>>
    ) -> Self;
fn set_children(self, children: impl IntoIterator<Item = Node<Msg>>) -> Self;
fn try_set_children(
        self,
        children: Option<impl IntoIterator<Item = Node<Msg>>>
    ) -> Self;
fn get_class(&self) -> Option<Class>;
fn class(self, class: impl Into<Class>) -> Self;
fn get_id(&self) -> Option<Id>;
fn try_id(self, id: Option<impl Into<Id>>) -> Self;
fn id(self, id: impl Into<Id>) -> Self;
fn el_ref<E: Clone>(self, reference: &ElRef<E>) -> Self;
fn config(self, conf: impl FnOnce(El<Msg>) -> El<Msg>) -> Self;
fn config_if(self, _: bool, _: impl FnOnce(El<Msg>) -> El<Msg>) -> Self;
fn config_if_else(
        self,
        _: bool,
        _: impl FnOnce(El<Msg>) -> El<Msg>,
        _: impl FnOnce(El<Msg>) -> El<Msg>
    ) -> Self;
fn for_class(
        self,
        class: impl Into<Class>,
        f: impl Fn(Node<Msg>) -> Node<Msg> + Copy
    ) -> Self;
fn for_id(
        self,
        id: impl Into<Id>,
        f: impl Fn(Node<Msg>) -> Node<Msg> + Copy
    ) -> Self; }

Required methods

fn try_add_style(self, val: Option<Style>) -> Self

fn set_style(self, val: Style) -> Self

fn try_set_style(self, val: Option<Style>) -> Self

fn and_style(self, conf: impl FnOnce(Style) -> Style) -> Self

fn set_attribute(self, val: Attribute) -> Self

fn try_set_attribute(self, val: Option<Attribute>) -> Self

fn set_attributes(self, val: Attributes) -> Self

fn and_attributes(self, conf: impl FnOnce(Attributes) -> Attributes) -> Self

fn add_children(self, children: impl IntoIterator<Item = Node<Msg>>) -> Self

fn try_add_children(
    self,
    children: Option<impl IntoIterator<Item = Node<Msg>>>
) -> Self

fn set_children(self, children: impl IntoIterator<Item = Node<Msg>>) -> Self

fn try_set_children(
    self,
    children: Option<impl IntoIterator<Item = Node<Msg>>>
) -> Self

fn get_class(&self) -> Option<Class>

fn class(self, class: impl Into<Class>) -> Self

fn get_id(&self) -> Option<Id>

fn try_id(self, id: Option<impl Into<Id>>) -> Self

fn id(self, id: impl Into<Id>) -> Self

fn el_ref<E: Clone>(self, reference: &ElRef<E>) -> Self

fn config(self, conf: impl FnOnce(El<Msg>) -> El<Msg>) -> Self

fn config_if(self, _: bool, _: impl FnOnce(El<Msg>) -> El<Msg>) -> Self

fn config_if_else(
    self,
    _: bool,
    _: impl FnOnce(El<Msg>) -> El<Msg>,
    _: impl FnOnce(El<Msg>) -> El<Msg>
) -> Self

fn for_class(
    self,
    class: impl Into<Class>,
    f: impl Fn(Node<Msg>) -> Node<Msg> + Copy
) -> Self

fn for_id(
    self,
    id: impl Into<Id>,
    f: impl Fn(Node<Msg>) -> Node<Msg> + Copy
) -> Self

Loading content...

Implementors

impl<Msg> ElExt<Msg> for Node<Msg>[src]

impl<Msg> ElExt<Msg> for El<Msg>[src]

Loading content...