FilterChips
A row of chips. The chosen one narrows a RecordList on the same screen.
Use it for: Quick filters such as All, Active and On hold. A chip’s value goes to a list parameter that reads {"source": "choice"}; a chip with no value, such as All, sends nothing and the list shows everything.
- CategoryInput
- ChildrenNone
- DataNone
- ActionNone
| Prop | Required | Accepts | What it does |
|---|---|---|---|
options |
Yes | list of 2 to 8 items | The chips, each with a label and an optional value to send. A chip with no value sends nothing. |
Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options. Every component except Screen accepts when, described in Data-driven look.
Example
Section titled “Example”From the Northline Builders example project:
{ "id": "status-chips", "type": "FilterChips", "props": { "options": [ { "label": "All" }, { "label": "Planning", "value": "planning" }, { "label": "In progress", "value": "in-progress" }, { "label": "On hold", "value": "on-hold" }, { "label": "Done", "value": "done" } ] }}