alexandruboboc / droptabs Goto Github PK
View Code? Open in Web Editor NEWJquery plugin for hiding Bootstrap tabs inside a dropdown, when viewport is too small.
License: MIT License
Jquery plugin for hiding Bootstrap tabs inside a dropdown, when viewport is too small.
License: MIT License
Hello,
Thanks for taking the time to make this plugin. After doing a lot of research, your plugin appears to do exactly what I need.
Unfortunately I tried for around 5 hours to try and see why this plugin is unable to work with AJAX loaded tabs. (I'm using this plugin https://github.com/LeaseWeb/bootstrap-remote-data). From what I can see, the plugin doesn't break the markup however I was unable to determine why I was getting the radical behaviour, ie no ajax content able to be loaded, dropdown menu renaming itself to tabs that werent in the menu yet, etc.
Hopefully one day you can add support for remote tabs as working on the plugin is beyond my skills.
Tim
When selecting an item from the dropdown, there is no feedback for the user regarding selected element, unless the dropdown is again expanded.
The dropdown text should change and show the selected item text.
Hi
I love your plugin.
Here's a small improvement:
The default text of the dropdown-tab is hardcoded as "Dropdown"
on line 58 $('>a', dropdown).html('Dropdown <b class="caret"></b>');
For multilanguage purposes it would be a nice feature to make this configurable
ie: add after Line 16 this: dropdownLabel : "Dropdown",
and change the above code to $('>a', dropdown).html(s.dropdownLabel + ' <b class="caret"></b>');
then this can be set by parameters: $('.droptabs').droptabs({dropdownLabel: 'myLabel'});
hope this helps
Dirko
Hi.
I notice the dropdown will show in first load even if all the items fit into specific width.
How to hide the dropdown instead of show when all items are fit in the width?
Please add a minified js version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.