Hello,
according to the documentation when adding preview: field
to a custom block it should show the defined fields and allow for inline editing, without opening the drawer. When I do it, it previews the fields, but they are greyed out and to edit them, the drawer still opens. I’d really like to be able to edit the block fields inline, without opening the drawer.
Am I doing something wrong, or are the docs wrong?
This is my code for the block:
- type: bargraph
name: Bar Graph
preview: fields
label: "{{ heading }}"
fields:
heading:
type: textarea
buttons: false
label: Heading
color:
type: select
label: Color
options:
full: Full colors
muted: Muted colors
parts:
type: structure
label: parts
fields:
title:
type: textarea
buttons: false
label: Title
percentage:
type: number
step: 10
min: 10
max: 100
color:
type: select
label: Color
options:
light: Light grey
middle: Middle grey
dark: Dark grey
green: Highlight green
and this is how it looks in the panel: