grapesjs
grapesjs copied to clipboard
Views Quesion
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:
- change to active on click and show content of view while active.
- 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 .
I dont know if there is a proper way to do it. I eventually managed to create this such a behavior by plain JS.