Issue #2833💬 AnsweredOpened June 16, 2020by jpdigital0 reactions

How to add a toolbar to a component?

Quick answerby artf

Check here https://github.com/artf/grapesjs/issues/266

Read full answer below ↓

Question

Hello,

I would like to extend the table component with a toolbar for adding and removing columns and rows. As far as I understood the documentation and the code the function onActive should be triggered when a component is selected. Or did I misunderstood this function? Because when I try to extend the view of the table component like this

editor.DomComponents.addType("table", {
    view: {
         onActive() {
           ...
        },
        onDisable() {
             ...
        }
    }
}

the functions are no executed.

Best, Jens

Answers (1)

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.