Issue #3117Opened November 6, 2020by zhiyuanzhang-unai0 reactions

How to remove a category if no component in it

Question

I build the custom components at runtime based on a dropdown. When user changes the selection of that dropdown, related custom block will be added and non-related block will be removed. all custom blocks are group by different category name.

if all blocks are removed from that category, it will show on the screen.

Is there any way to remove a category? Or somehow make it auto-removed if no blocks within?

Answers (1)

artfNovember 9, 20200 reactions

Try to re-render the block manager with a new collection of blocks

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.