Set item.label based on different attribute than item.value

Hello!

Imagine this record:

{
      "name": "I love Agolia! Its amazing & fun, **really** “,
      "slug": "i-love-agolia"
}

On a widget is it possible to use the slug for the attribute and the item.value, and use the name for the item.label?
I would like to use the slug to create the url and use the name to display it in my dropdown widget

Thx a lot!