ui_patterns
ui_patterns copied to clipboard
It is possible to define different "preview" by "variants" ?
for example:
[...]
variants:
default:
label: Défaut
description: Affichage normal.
teaser:
label: Teaser
description: Affichage Teaser.
fields:
nom:
type: text
label: Nom
description: Nom du produit.
preview:
default: 'Lave de strombolli'
teaser: 'Lave de ....'
visuel:
type: image
label: Visuel produit
description: Visuel du produit.
preview:
default:
theme: image
uri: https://via.placeholder.com/220
width: 220
attributes: {}
teaser: 20
[...]