VSelectOption

Throughout the component each option (both selected and in the dropdown list) is an instance of the VSelectOption class. The instance is in the format { label, index, value, raw } where:

  • label - label of the option, usually a display name and default filtering field.

  • value - the value that will be assigned to the model if the option is selected

  • index - unique identifier of the option to use in comparison and as a key in v-for

  • raw - the original option that the VSelectOption instance was created from

The properties of the instance are derived based on the as prop of the vSelect component therefore it is required when working with non primitive dropdown list values.

The index path should point to a unique primitive value for a reliable comparison and better performance.

Last updated