Module person_field
Expand description
PersonField: a form’s person, shown as their avatar and name and picked from a list.
The field reads as a control with the person’s avatar and name, or “No one” in the quieter ink while nobody is picked. Pressing it opens a stack of the people to pick: “Me”, “No one” to clear it, then the workspace’s members and agents, each with their avatar.
The owner learns of a change through PersonField::on_change and tells the field who it
holds with PersonField::set_value; the field never holds the authoritative value. A
described component’s field follows the identity its binding holds
(PersonField::from_state) and names it from the people it is given.
Structs§
- Person
Field - See the module docs.
- Person
Field Props - A form’s person: who is doing it, shown as their avatar and name, and picked from the workspace’s members and agents. “Me” picks the person the view is shown to, “No one” clears it.