[][src]Struct seed::dom_types::El

pub struct El<Ms: Clone + 'static> {
    pub tag: Tag,
    pub attrs: Attrs,
    pub style: Style,
    pub listeners: Vec<Listener<Ms>>,
    pub text: Option<String>,
    pub children: Vec<El<Ms>>,
    pub id: Option<u32>,
    pub nest_level: Option<u32>,
    pub el_ws: Option<Element>,
    pub markdown: bool,
}

An component in our virtual DOM.

Fields

Methods

impl<Ms: Clone + 'static> El<Ms>
[src]

Create an empty element, specifying only the tag

Create an element that will display markdown from the text you pass to it, as HTML

Add a new child to the element

Add an attribute (eg class, or href)

Add a new style (eg display, or height)

Replace the element's text node. (ie between the HTML tags)

This is used to provide access to el_ws while recursively appending children to it.

Dummy elements are used when logic must return an El due to the type system, but we don't want to render anything.

Trait Implementations

impl<Ms: Clone> UpdateEl<El<Ms>> for Attrs
[src]

impl<Ms: Clone, '_> UpdateEl<El<Ms>> for &'_ Attrs
[src]

impl<Ms: Clone> UpdateEl<El<Ms>> for Style
[src]

impl<Ms: Clone, '_> UpdateEl<El<Ms>> for &'_ Style
[src]

impl<Ms: Clone> UpdateEl<El<Ms>> for Listener<Ms>
[src]

impl<Ms: Clone> UpdateEl<El<Ms>> for Vec<Listener<Ms>>
[src]

impl<Ms: Clone, '_> UpdateEl<El<Ms>> for &'_ str
[src]

impl<Ms: Clone> UpdateEl<El<Ms>> for Vec<El<Ms>>
[src]

impl<Ms: Clone> UpdateEl<El<Ms>> for El<Ms>
[src]

impl<Ms: Clone + 'static> PartialEq<El<Ms>> for El<Ms>
[src]

This method tests for !=.

impl<Ms: Clone + 'static> Clone for El<Ms>
[src]

Allow the user to clone their Els. Note that there's no easy way to clone the closures within listeners, so we ommit it.

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<Ms> !Send for El<Ms>

impl<Ms> !Sync for El<Ms>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]