formz/widget

Types

pub type Args {
  Args(
    id: String,
    labelled_by: LabelledBy,
    described_by: DescribedBy,
  )
}

Constructors

  • Args(
      id: String,
      labelled_by: LabelledBy,
      described_by: DescribedBy,
    )
pub type DescribedBy {
  DescribedByElementsWithIds(ids: List(String))
  DescribedByNone
}

Constructors

  • DescribedByElementsWithIds(ids: List(String))
  • DescribedByNone
pub type LabelledBy {
  LabelledByLabelFor
  LabelledByFieldValue
  LabelledByElementsWithIds(ids: List(String))
}

Constructors

  • LabelledByLabelFor
  • LabelledByFieldValue
  • LabelledByElementsWithIds(ids: List(String))
pub type Widget(format) =
  fn(field.Field, Args) -> format

Functions

pub fn args(labelled_by labelled_by: LabelledBy) -> Args
pub fn described_by(args: Args, db: DescribedBy) -> Args
pub fn id(args: Args, str: String) -> Args
Search Document