Skip to content

SelectStatus API

API reference docs for the Stash SelectStatus component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import SelectStatus from '@leaflink/stash/SelectStatus.vue';

Props

NameTypeDefaultDescription
modelValuenumber | string | boolean-Sets the currently-selected option for the component
statusOptionsArray-The list of all options to select the status from each object must have the following structure: { id: number | string, name: string, color?: string }
disabledbooleanfalseDisables the component, if true
displayBystring 'name' Which key of the prop option to use for display
labelstringundefinedShows a label above the select
noTruncatebooleanfalseAllows option text to wrap to next line when set to true
placeholderstring 'Select Status' Placeholder text
secondarybooleanfalseSets the background color of the component to the color of the selected option
trackBystring 'id' Default field to track the selected status by
valuenumber | string | boolean | nullnull

Slots

None

Events

NameDescription
update:model-valueEmitted when the model value changes