Hi all,
i try to access my blueprint fields within the index.js to make a preview for my custom blocks. I have tried content.myvar but this does not work. Also mytabname.myvar does not work. thx for help!
panel.plugin("your-project/button-block", {
blocks: {
button: {
computed: {
placeholder() {
return "Button text …";
}
},
template: `
<input
type="text"
:placeholder="placeholder"
:value="content.text"
@input="update({ text: $event.target.value })"
/>
`
}
}
});
name: Button
icon: bolt
tabs:
content:
fields:
link:
type: url
text:
type: text
styles:
fields:
class:
type: text
id:
type: text