lorenzos / fancyselect Goto Github PK
View Code? Open in Web Editor NEWA non-obtrusive image dropdown menu that extends and replaces a standard HTML Select control.
Home Page: http://mootools.net/forge/p/fancyselect
A non-obtrusive image dropdown menu that extends and replaces a standard HTML Select control.
Home Page: http://mootools.net/forge/p/fancyselect
I should use Fx.Morph to animate dropdown height. I can't use Fx.Slide.
on autoHide=true select hides on mouse click. I offer something like this:
// Auto-hide the dropdown menu on mouse leave
if (this.options.autoHide) {
this.ul.addEvent('mouseleave', function(e){
if (!this.shown) return;
this.hide();
}.bind(this));
this.div.addEvent('mouseleave', function(e){
if (!this.shown) return;
this.hide();
}.bind(this));
}
Hi. This plugin don't work in smartphone. If i open select in smartphone then text in select empty. In desctop it is work.
smartphone:
http://i.prntscr.com/f1pkcrp0RuutbC118eEqUw.png
http://i.prntscr.com/S68pl9gxT2muk4HZYb93AQ.png
Hello Lorenzo,
I just tried to use the script on a page, but need the fancyselect to fire the onchange event of the original select menue. I set legacyEvents true, but the onchange is not fired.
Here is the sourcecode of the original select:
<select name="filter[color]" id="ctrl_filter_color_79" class="select fancyselect" onchange="$('myform').submit();">
<option value="">Farbe wählen</option>
<option value="beige/creme">beige/creme</option>
[...]
<option value="weitere">weitere</option>
</select>
Do you have any hints, how I can fix this?
Thanx,
Felix
Implement a click-outside event (using events on body) to hide FancySelect dropdown menus.
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.