Code Monkey home page Code Monkey logo

jquery.hide-show's People

Contributors

anevins12 avatar emcoward avatar kemiga avatar lawlesscreation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.hide-show's Issues

Button text

It would be nice if we could pass in options for the button text that allowed for parts of the text to be hidden e.g.:

    $('.example').hideShow({
        hideText: '<span class="hidden">Hide</span> Content',
        showText: '<span class="hidden">Show</span> Content'
    });

Move aria-expanded attribute

Suggest putting the aria-expanded attribute on the element instead of the

containing the content. This makes the state of the content discoverable even when the content is hidden - whilst the aria-expanded attribute is on the
the state can only be determined when the
is available to AT.

Hide Content ...

Button active class

It would be helpful if the toggle button had a class to identify when the thing it controls is open so we can style the button differently when it is open.

Add slide direction and overlay options

It would be nice to add different slide directions as required e.g.:

slideDirection: 'top' // left, bottom, right

As well as add an overlay (a little like a lightbox would do) for off-canvas hide-show elements e.g.:

overlayEnabled: false // true

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.