ziffmedia / nova-select-plus

A Laravel Nova Select Field
MIT License
95 stars 26 forks source link

Feature Request: option to customize the result text #16

Closed gavinhewitt closed 4 years ago

gavinhewitt commented 4 years ago

Hi,

I have terms that are written the same, but different id's and in different categories and I would like to be able to distinguish between them. It would be very helpful if you could add something to the result so you can see which one is which.

ralphschindler commented 4 years ago

I do have an upcoming feature where you can customize the label with html... still working out some of the details, but basically looks like this:

https://github.com/ziffmedia/nova-select-plus/blob/demo-app/demo/app/Nova/Person.php#L79

ralphschindler commented 4 years ago

Please see the v1.0.8 release with the label using a closure:

https://github.com/ziffmedia/nova-select-plus/blob/master/readme.md#-labelstringclosure-attribute-pick-a-different-attribute-to-use-as-the-label