Problem adding trait to block #5258
JuniorVezintana
started this conversation in
General
Replies: 1 comment 4 replies
-
You can't add traits on the Block level, you have to define them on the Component level, then you can use that component in your block |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem, when trying to add a Trait, it does not appear when selecting the item. Do the traits have a plugin to install or are they already integrated?
$this.objBlocksDefault['h1'] = {
label: 'Headline',
category: $this.strBlockText,
media:
<img src="/builder/svg/h1.svg" class='icon-tools' style="width:45px">
,resizable: true,
attributes: { class: '', title: "Adicione uma Headline" },
content:
<h1 class="" data-bold="inherit" data-gramm="false" style="display:flex; justify-content:center; align-items:center; padding: 0; margin: 5px 5px 10px 5px; text-align: center; box-sizing: border-box; font-size: 39px;width:100%;" data-gjs-resizable="true"> Headline 01 </h1>
,traits: {
content: {
type: 'text',
label: 'Content',
default: 'Headline 01',
},
},
};
Beta Was this translation helpful? Give feedback.
All reactions