Skip to content

struct

FieldCtx

pub struct FieldCtx {
    pub control_id: String,
    pub desc_id: String,
    pub error_id: String,
    pub has_desc: Signal<bool>,
    pub has_error: Signal<bool>,
}

What a Field shares with the control, label, description and error inside it (context "field"), so they link up with ARIA.

Fields

control_id

pub control_id: String

The control's id, for the label's for.

desc_id

pub desc_id: String

The description's id, for aria-describedby.

error_id

pub error_id: String

The error message's id, for aria-describedby.

has_desc

pub has_desc: Signal<bool>

Whether a description is present.

has_error

pub has_error: Signal<bool>

Whether an error is shown.

Trait implementations