Tabs inside Panel
See original GitHub issueHi @artf,
As you must know, at my company we are creating a product based on GrapesJS.
We are trying to keep as close as possible from GrapesJS core. As developers we are trying our best to not create a fork from GrapesJS and keep contributing back to the repo.
Now, we have a new feature to create and we would like to know if it’s interesting for GrapesJS.
We want to add tabs inside the blocks panel. It’s works like the categories, they serve to group a specific set of blocks.
Something like that
Do you think is it good for Grapes? I mean, is there any chance that could be merged back to the grapes core?
We started to code something like that: (this is the grapesjs.init options)
tabManager: {
defaultTab: 'content',
tabs: [{
id: 'content',
label: 'Content',
attributes: {class:'gjs-fonts gjs-f-b1'},
},{
id: 'layout',
label: 'Layout',
attributes: {class:'gjs-fonts gjs-f-b2'},
}]
},
blockManager: {
blocks: [{
id: 'b1',
label: '1 Block',
category: 'Basic',
tab: 'content',
attributes: {class:'gjs-fonts gjs-f-b1'},
content: `<div>text</div>`
}
Let me know what you think about the idea. We love GrapesJS and we want to keep giving back to the project as possible as we can.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
You are the man!!! Thanks a lot!! I will try it !!!
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.