Forms / Choice pills

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

NameTypeDefaultDescription
v-model(string | number)[][]The chosen values.
optionsEcoOption[]—Short values in a closed set.
labelstring—Accessible name of the group.
addablebooleanfalseOne dashed pill--add at the end — the escape from the enumeration.
addLabelstring"Add"Text of the add pill (or use the #add slot).
disabledbooleanfalseDisable every pill.
@add() => void—The add pill was pressed.