grapesjs-tabs
Version:
Simple tabs component plugin for GrapesJS
21 lines (18 loc) • 499 B
JavaScript
export const role = 'tablist';
export default (dc, config) => {
dc.addType(config.typeTabContainer, {
model: {
defaults: {
name: 'Tab Container',
draggable: `[data-gjs-type="${config.typeTabs}"]`,
droppable: `[data-gjs-type="${config.typeTab}"]`,
copyable: false,
removable: false,
highlightable: false,
attributes: { role },
classes: config.classTabContainer,
...config.tabContainerProps
},
},
});
}