CRUD icon indicating copy to clipboard operation
CRUD copied to clipboard

[Feature Request] select2_json_from_api - Allow callback for attribute

Open rroblik opened this issue 5 months ago • 0 comments

Hi,

I'm using the new select2_json_from_api field and it's working great !

It should be cool 🆒 to allow a callable callback in the attribute option, for example to concatenate 2 attributes of the json data in the drop down list , something like that :

'attribute' => function ($item) {
  return $item['name'] . ' (' . $item['id'] . ')';
}

Thanks

rroblik avatar Aug 28 '24 07:08 rroblik