Hi thanks for the useful package!
I would like to customize label in the vue-select field, much in the same way as for usingDetailLabel and usingIndexLabel. That is, passing a callback to SelectPlus::label() and being able to build a custom string from it. Field::displayUsing() does not seem to work here.
Any ideas?
I played around by adding this method to SelectPlus:
and changing $model->{$this->label} to $this->getValueFromLabel($model) in SelectPlus::mapToSelectionValue(). It works, except when doing an ajax search...
Hi thanks for the useful package! I would like to customize label in the vue-select field, much in the same way as for
usingDetailLabel
andusingIndexLabel
. That is, passing a callback toSelectPlus::label()
and being able to build a custom string from it.Field::displayUsing()
does not seem to work here. Any ideas?I played around by adding this method to SelectPlus:
and changing
$model->{$this->label}
to$this->getValueFromLabel($model)
inSelectPlus::mapToSelectionValue()
. It works, except when doing an ajax search...