Skip to main content

new

Function new 

Source
pub fn new(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    html: &str,
) -> Result<DivHandle, DivError>
Expand description

Creates a new div at the defined position with the given HTML as content. Use the returned DivHandle to manipulate the div.