Issue #2102💬 AnsweredOpened June 27, 2019by Amir28280 reactions

Views Quesion

快速解答by Amir2828

I dont know if there is a proper way to do it. I eventually managed to create this such a behavior by plain JS.

Read full answer below ↓

Question

Hello All,

My question this time is, I added a new view which contains an image gallery and I would like to make it act like any other view. to be specific:

  1. change to active on click and show content of view while active.
  2. while other views are active hide my views content and change the button Css to not active.

so far I tried to add the classes manually by getting the item and using addClass or by Js selectors but It works for half a second and then crashes on the reason of undefined.

Any help will be appreciated .

Answers (1)

Amir2828July 1, 2019

I dont know if there is a proper way to do it. I eventually managed to create this such a behavior by plain JS.

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.