grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

New section in View Container

Open vishal5033 opened this issue 9 years ago • 3 comments

Hello,

I want to add a new section in view container. Lets say, when we click Style manager it opens style manager. I want to create similar behaviour. Need to show some pre-defined templates which should be shown under that section.

Can you please help me out?

vishal5033 avatar Nov 17 '17 07:11 vishal5033

To add more buttons there

editor.Panels.addButton('views', {
    id: 'yourBtnId',
    className: 'fa fa-paint-brush yourClass',
    command: 'yourCommand',
    attributes: { title: 'Some title'},
})

Then create yourCommand Command, which might be very similar to https://github.com/artf/grapesjs/blob/dev/src/commands/view/OpenBlocks.js

artf avatar Nov 17 '17 12:11 artf

Hey did you manage to create that new templates view? If so I would like some pointers as I try to do something similar

Amir2828 avatar Jun 25 '19 09:06 Amir2828

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.

lock[bot] avatar Jun 24 '20 19:06 lock[bot]