use fission::prelude::*;
// Inside a view: clear_unread_filter_action is bound to the real filter.
Tag(label: cx.tr("mail.unread_only"), on_close: clear_unread_filter_action)
Field | Type | Meaning | Notes / default behavior |
|---|---|---|---|
label | String | Text shown inside the chip. | Required. |
on_close | Option<ActionEnvelope> | Action fired by the small close button. | Defaults to None. When present, the widget renders a close affordance. |
on_press | Option<ActionEnvelope> | Optional activation action for a toggle tag. | Keep distinct from the remove action. |
selected | bool | Whether a toggle tag is on. | Controlled by app state. |