html_dsl/types/html/form/select

Types

This is a type that represents an option element

pub opaque type Selection

Functions

pub fn add(
  root root: Selection,
  attributes attributes: Option(Attribute),
  value value: String,
  label label: String,
) -> Selection

This creates a string that represents an option element

  • @param root: The root of the option
  • @param attributes: The attributes of the option
  • @param value: The value of the option
  • @param label: The label of the option
  • @returns: An Option
pub fn end(root: Selection) -> Input
pub fn select(
  input: Input,
  attributes attributes: Option(Attribute),
) -> Selection

This creates a string that represents a select element

  • @param attributes: The attributes of the element
  • @param options: The options of the select
  • @returns: A string that represents the HTML element
Search Document