Hi. may i know how to make secondary automatically open whenever i click primary pane? i need to click arrow at bottom to active secondary pane. please fix it.
Hi Hassan,
We will check this and we will try to include a fix in the next release. If you want to enable the secondary panel when you click on the primary panel you can use the functions below for that.
const enableSecondarySidebar = () => {
document.body.setAttribute("data-kt-aside-minimize", "on");
};
const disableSecondarySidebar = () => {
document.body.removeAttribute("data-kt-aside-minimize");
};
<div
@click="enableSecondarySidebar()"
class="aside-primary d-flex flex-column align-items-lg-center flex-row-auto"
>
...
</div>
temporary i make like this on script. just small bug at arrow to make it rotate left to right
const sidebarOpen = ref(true)
const enableSecondarySidebar = () => {
document.body.removeAttribute("data-kt-aside-minimize");
}
const disableSecondarySidebar = () => {
document.body.setAttribute("data-kt-aside-minimize", "on");
}
const toggleSecondarySidebar = () => {
if (sidebarOpen.value) {
disableSecondarySidebar();
} else {
enableSecondarySidebar();
}
sidebarOpen.value = !sidebarOpen.value
}
Hi,
You can toggle the arrow state by adding and removing active
class to this button.
Regards,
Lauris Stepanovs,
Keenthemes Support Team