grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Views Quesion

Open Amir2828 opened this issue 7 years ago • 1 comments

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 .

Amir2828 avatar Jun 27 '19 08:06 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.

Amir2828 avatar Jul 01 '19 07:07 Amir2828