vuetify-form-base icon indicating copy to clipboard operation
vuetify-form-base copied to clipboard

Dynamic label text when using array

Open Mohammad-Alavi opened this issue 4 years ago • 1 comments

First of all thank you for your awesome work on this package 🥇

How can we dynamically set the label text when using an array?

Here is an example:

'pages': {
        'type': 'array',
        'col': 12,
        'schema': {
              'title': {
                   type: 'wrap',
                   label: <================= Here
                   'col': 12,
                   'schema': {
                         ....
                   }
              },
        }
},
            

Look at "label" How can we get the current item so we can use it's properties as the label text? e.g. : label: val => val.title or something like that?

Mohammad-Alavi avatar Nov 24 '20 18:11 Mohammad-Alavi

Hello, thank you for your inquiry!

It is currently not possible to access an array item or the index in this way. But give me some time, I will think about whether this is possible.

wotamann avatar Dec 03 '20 16:12 wotamann