Issue #1292Opened July 17, 2018by ploutos271 reactions

Passing custom classes on components block..

Question

Hi there,

Components parameters are not allow us to pass a custom specific className, p.s: I don't want to pass the className inside the content....

.....
 blockManager: {
                   appendTo: '#blocks',
                   blocks: [{
                           id: 'header',
                           label: 'Header',
                           className: 'header',
                           content: {
                               tagName: 'app-header',
                               draggable: true,
                               components: [{
                                   tagName: 'div',
                                   content: 'This is the text inside ther header',
                               },{
                                   tagName: 'div',
                                   components: 'This is the main header',
                               }]
                           },
                           category: 'Headers',
                        }]
            },
......

Is there a way to do that ? Or we should build a plugin for that ?? Thanks !

Answers (2)

ploutos27July 19, 20181 reactions

fixed:

...
blockManager: {
    appendTo: '#blocks',
        blocks: [{
            id: 'container',
            label: '<div class="gjs-block-label">CONTAINER</div>',
            attributes: { class: 'gjs-fonts gjs-f-b1' },
            content: {
                classes: ['columns-row', 'is-desktop'],
                components: ``
            }
       }]
   } ...
lock[bot]September 17, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.