pub struct Filling<'a> {
pub value: Value<'a>,
pub placeholder: Option<&'a str>,
pub trailing: Option<Markup<'a>>,
pub id_prefix: Option<&'a str>,
}Expand description
Everything about the field that the description does not carry.
Fields§
§value: Value<'a>What the field holds now.
placeholder: Option<&'a str>Ghost text shown while the field is empty.
trailing: Option<Markup<'a>>Markup appended inside the group, after the hint. Not escaped.
id_prefix: Option<&'a str>Scopes the id attributes to one instance of the form.
The field’s name is what the value submits under and is the same
wherever the form appears; its id has to be unique in the document,
and those two facts stop agreeing the moment a form appears twice.
goingson hits this directly: its new-task and edit-task modals are the
same field set, so it prefixes form-modal-task-new or -edit to keep
label for and aria-describedby pointing at the right control.
Applies to id, for and the -hint / -error associations. Never to
name, which would change what the form submits.