builder icon indicating copy to clipboard operation
builder copied to clipboard

How to give just simple array as prop

Open Ischafak opened this issue 1 year ago • 1 comments

Describe the bug Hi, first of all i am using nuxt. it is not a bug but i have an image array something like this

['imagepath1''imagepath2']

i want props in this format but when i select 'list' type it forces me to make array object. Cant i make just an array which users can selects multiple images from editor?

Screenshots image

image

Ischafak avatar Feb 12 '24 14:02 Ischafak

must i do [ { image: 'imagepath1' }, { image: 'imagepath2' }, ]

something like this?

Ischafak avatar Feb 12 '24 14:02 Ischafak

@Ischafak yes, you are correct, it will be a list in that format if you want to have the input be of image type. For more information on input types, please see this documentation: https://www.builder.io/c/docs/custom-components-input-types

mrkoreye avatar Apr 09 '24 15:04 mrkoreye