Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Components
  2. Task
  3. Usage

Task

Usage

Task discloses a summary of executed work under a muted trigger row of a search glyph and a label. Pass the work as data:
  • label is the whole trigger label, for example "Worked for 5m 26s". The caller formats the elapsed time in the user's language; Task formats nothing.
  • Each item is one line of text. An item may cite the files it touched; each file is a small Token chip after the text, with an optional glyph.
  • Items are keyed by id, and a file by name.
  • Closed by default. defaultOpen, open and onOpenChange work as on Collapsible; details.cancel() keeps the current state.
  • Pressing an item never closes the task: the items are a sibling of the trigger.
Previous
Tabs / Accessibility
Next
Task / API and Development