1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

folded navbar responsive

This commit is contained in:
codecalm
2019-07-10 21:27:07 +02:00
parent fba6e2a785
commit 43a2fc1652
4 changed files with 51 additions and 19 deletions

View File

@@ -135,6 +135,7 @@ class TablerDemo {
};
toggleSidebarColor(color) {
console.log('color', color);
return this.setConfig('sidebarColor', color, ['dark', 'light'], () => {
if (color === 'dark') {
document.querySelector('.js-sidebar').classList.add('navbar-dark');