nomensa / jquery.hide-show Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin for inserting buttons/links to hide and show sections of content
Home Page: http://nomensa.github.io/jquery.hide-show
License: MIT License
jQuery plugin for inserting buttons/links to hide and show sections of content
Home Page: http://nomensa.github.io/jquery.hide-show
License: MIT License
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'
});
Currently have to add: "target.removeData('plugin_hideShow')" in order to completely destroy the plugin data.
Suggest putting the aria-expanded attribute on the element instead of the
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.
Believe the aria-owns attribute should be removed from the element. A show/hide widget like this doesn't need a parent/child relationship between the control and the content (aria-controls is fine) [1]. Consequently it's causing issues with Jaws16 (the only AT to support aria-owns at present).
[1] http://www.w3.org/TR/wai-aria/states_and_properties#aria-owns
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
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.