Comments (9)
from stisla.
This was implemented , now, await the pr stisla/docs#6 . :) @ricardocarrer
from stisla.
Did not work :(
from stisla.
And why you closed this issue? π
from stisla.
When it starts with the sidebar-mini it gets sidebar_nicescroll active and does not add the tooltip in the single menu. When it expands, the sidebar_nicescroll gets broken, it does not stay the same width as the sidebar. I tried to make some adjustments, but I did not succeed.
Sorry for my english (google translator)
from stisla.
from stisla.
Hi!
I think it was!
Transform in function for add tooltip single menu:
//add RC
var add_tooltip_sidebar_mini = function() {
$(".main-sidebar .sidebar-menu > li").each(function() {
let me = $(this);
if(me.find('> .dropdown-menu').length) {
me.find('> .dropdown-menu').hide();
me.find('> .dropdown-menu').prepend('<li class="dropdown-title pt-3">'+ me.find('> a').text() +'</li>');
}else{
me.find('> a').attr('data-toggle', 'tooltip');
me.find('> a').attr('data-original-title', me.find('> a').text());
$("[data-toggle='tooltip']").tooltip({
placement: 'right'
});
}
});
}
in else toggle_sidebar_mini:
}else{
body.addClass('sidebar-mini');
body.removeClass('sidebar-show');
sidebar_nicescroll.remove();
sidebar_nicescroll = null;
//add RC
add_tooltip_sidebar_mini();
}
in toggleLayout, add other else if:
//Add RC
}else if($("body").hasClass('sidebar-mini')){
add_tooltip_sidebar_mini(); //transform in function
if(sidebar_nicescroll != null) {
sidebar_nicescroll.remove();
}
}else{
update_sidebar_nicescroll();
}
from stisla.
Hm, if you want the sidebar-mini
as an initial sidebar. Simply you can trigger the toggle button with JavaScript.
$('[data-toggle="sidebar"]').click();
from stisla.
@ricardocarrer i implemented this. I'm Await an issue be approved.
Please look for this: stisla/docs#5
from stisla.
Related Issues (20)
- Resizing from full width to smaller width then UI break down
- Sidebar menu broken
- dropdownParent select2 to fireModal not working
- Dropdown in dropdown mobile
- Error Yarn Install HOT 1
- Closing other open sidebar dropdowns HOT 2
- Change button class modal confirmation HOT 2
- Isntal stisla HOT 3
- ASP Core MVC Views, with partials template HOT 1
- sound player with icon and apache eCharts not responsive HOT 1
- remove sidebar hide animation on html loaded on mobile screen size HOT 1
- No dist folder HOT 1
- Summernote modal HOT 2
- Stisla Datatable HOT 1
- Documentation missing HOT 4
- [Request] Can you add dark theme? HOT 1
- Site not working! HOT 2
- getstisla.com is not working
- The website is down HOT 1
- problem with column visibility datatables stisla template HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stisla.