ui_patterns icon indicating copy to clipboard operation
ui_patterns copied to clipboard

It is possible to define different "preview" by "variants" ?

Open steveoriol opened this issue 3 years ago • 0 comments

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
[...]

steveoriol avatar May 18 '22 18:05 steveoriol