[][src]Struct paige::El

pub struct El {
    pub name: String,
    pub is_text: bool,
    pub paired: bool,
    pub attributes: Vec<Attr>,
    pub style: Vec<Prop>,
    pub content: Vec<El>,
}

An HTML element.

Fields

name: Stringis_text: boolpaired: boolattributes: Vec<Attr>style: Vec<Prop>content: Vec<El>

Methods

impl El[src]

pub fn text<N: Into<String>>(text: N) -> Self[src]

Creates a new element that displays its name as text and nothing else when formatted. This is useful for making innerHTML something other than a tag, such as inside the