Forms
Choice pills
Many small values chosen at once: sections, working days, periods.
import { EcoChoicePills } from "vue-ecosphere"
Sections, with an escape from the enumeration
The dashed pill is not another value; here it adds a section to show the event.
Value: ["A","B","C"] · add pressed 0×
Working days
Value: ["Mon","Tue","Wed","Thu","Fri","Sat"]
Periods a subject may fall in
API
| Name | Type | Default | Description |
|---|---|---|---|
v-model | (string | number)[] | [] | The chosen values. |
options | EcoOption[] | — | Short values in a closed set. |
label | string | — | Accessible name of the group. |
addable | boolean | false | One dashed pill--add at the end — the escape from the enumeration. |
addLabel | string | "Add" | Text of the add pill (or use the #add slot). |
disabled | boolean | false | Disable every pill. |
@add | () => void | — | The add pill was pressed. |