Wikiki/bulma-quickview

If there a way to open the quickview using JavaScript ?

Closed this issue · 1 comments

Hi,

Thanks for this great extension
Im using multiple quick views for a project, if this possible to open or close a quick view using JavaScript ? And if yes, can you provide the code for it ? I'm struggling to find a way to do it

Kindly.

You need to remove the '.is-active' class on the quickview, you can do that with JQuery

function callquickview(quickviewName) {
    if($('div#'+quickviewName+'.is-active').length)
        $('div#' + quickviewName + '.is-active').removeClass('is-active');
    else
        $('div#' + quickviewName).addClass('is-active');
}

I asked a dumb question, but i through it was more complicated.

Hopefully it ll help someone.