Issue #630💬 AnsweredOpened December 12, 2017by kkuksin0 reactions

Is it possible to set categories dinamically?

快速解答by artf

@kkuksin you don't need to remove blocks/categories, you should just rerender blocks. We discussed about blocks and tabs here #499

Read full answer below ↓

Question

Thanks for your component, I like it very much.

I have some dinamic blocks (I have tabs and when I change tab, I add group of blocks and remove the other group of blocks. The issue is that when I remove old blocks, I can't remove their categories. If I remove their categories with js ( document.querySelectorAll('.gjs-block-category') and then use .remove() for each of them ), that categories don't appear next time when I open the old tab.

Is there a way to change categories dinamically when I switch tabs and change blocks in BlockManager?

Answers (2)

artfDecember 13, 2017

@kkuksin you don't need to remove blocks/categories, you should just rerender blocks. We discussed about blocks and tabs here #499

lock[bot]September 18, 2019

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

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.