[][src]Struct paige::El

pub struct El {
    pub is_text: bool,
    pub paired: bool,
    pub name: String,
    pub attributes: Vec<Val>,
    pub style: Vec<Val>,
    pub children: Vec<El>,
}

An HTML element.

Fields

is_text: boolpaired: boolname: Stringattributes: Vec<Val>style: Vec<Val>children: 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