Keep drawer open with overlay
Hi,
Any method that can keep the drawer open even click on overlay?
I know can make "data-kt-drawer-overlay" = false can do this, but I want to keep the overlay as well.
Thanks.
Replies (3)
Hi,
At the moment this option is not supported but you can quickly implement it by using data-kt-drawer-permanent="true"
for the Drawer element and modify the below _createOverlay
function in src/js/components/drawer.js
under the click event handler:
KTUtil.addEvent(the.overlayElement, 'click', function(e) {
e.preventDefault(); if ( _getOption('permanent') !== true ) {
_hide();
}
});
Then recompile your assets folder with Gulp or Webpack.
Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment you will only need the compile assets, no need to install the build tools dependencies there.
Regards.
Hi,
Thanks for the solution and it works, and may I know will you release this in next version as the core program modified?
Thanks.
Hi ,
Yes, sure, this new feature will be added into the core of Keen in the next update soon.
Regards.