Code Monkey home page Code Monkey logo

jquerymobiledropdown's People

Contributors

christianvuerings avatar erunyon avatar joggink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jquerymobiledropdown's Issues

Feature request: multiple ul level support

Hey,

I recently implemented the CSStricks version of this code on http://wolfslittlestore.be/ (http://css-tricks.com/13303-convert-menu-to-dropdown/)

On my site there is some hierarchy within the work section, someone suggested using optgroup within the select to make this hierarchy visible in the dropdown.

The only problem I see is that an optgroup label is not clickable thus you would have to add an extra index/overview item too:

<optgroup label="Work">
    <option>Overview</option>
    <option>Webdesign</option>
    <option>Interface design</option>
    ...
</optgroup>

I've been meaning to code this but my JS is nowhere near good enough.

Todo: autohide

Enable or disable the autohide via a parameter, otherwise some CSS + media queries can be used

  // your navigation ul selector
  $('#nav-main ul').mobileSelect({
    autoHide : true
  });

Support / Feature request

I've added this plugin to a sandbox site - and it works really great.

Quick question though - when using the 'useWindowWidth' option it seems like I need to refresh my browser for the mobile drop down menu to replace the standard nav. Should that be the case? Is there a way to make the switch automatic?

Thanks in advance!

Todo: create a before / after hook

create a before / after hook so we can fix some things euhm... before and after I suppose

Something like this:

  // your navigation ul selector
  $('#nav-main ul').mobileSelect({
    before : function(){ // do something; },
    after: function(){ // do something else; }
  });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.