shentao/vue-multiselect

Accessing `getOptionLabel` within the "tag" slot

Open

#739 ouverte le 2 juin 2018

Voir sur GitHub
 (7 commentaires) (4 réactions) (0 assignés)JavaScript (6 559 stars) (994 forks)batch import
enhancementgood first issue

Description

Right now the tag slot receives the currently selected option, the search text and the remove method to remove the option. However, it would be useful to take advantage of the existing getOptionLabel method to display the option label.

Is it possible to pass the getOptionLabel, or possibly its result (the actual label) to the slot? Or am I doing something wrong?

Guide contributeur