Issue #1489Opened October 9, 2018by rgernale1 reactions

Multiple block mangers or filtering blocks based on critera

Question

I would like to be able to make separate blocks into groups for different icon on panel. For instance I have buttons A, B & C on panel . "A" block manager will contain 1,2,3 components, "B" block manager will contain 4,5,6 components and so on,

Answers (3)

mcsekar12October 9, 20181 reactions

Create blocks to be grouped with the same category name as below.

const blockManager = editor.BlockManager;
blockManager.add('buttonA', {
        id: 'buttonA',
        category: 'CategoryA',
        label: 'ButtonA',
        attributes: { class: 'fa fa-sticky-note-o' },
 content: "<div>ButtonA</div>"
      });
 blockManager.add('buttonB', {
        id: 'buttonB',
        category: 'CategoryA',
        label: 'ButtonB',
        attributes: { class: 'fa fa-sticky-note-o' },
 content: "<div>ButtonB</div>"      });


blockManager.add('button1', {
        id: 'button1',
        category: 'CategoryB',
        label: 'Button1',
        attributes: { class: 'fa fa-sticky-note-o' },
 content: '<div>Button1</div>'
      });

Here ButtonA,ButtonB will be grouped under CategoryA and Button1 under CategoryB

rgernaleOctober 9, 20180 reactions

Thank you for the fast response.

lock[bot]October 9, 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.