Clickable Table Rows 0.2

Very small plugin to make table rows clickable. Will find the first link within the row (with the designated class) and direct the user to its target location. If the user clicks on a link directly within the row the plugin will not interfere with this.

Optionally adds a class to the table if the plugin successfully attaches to a table so you can style the rows alternatively



Details

Author
Matthew Wells
Current version
0.2
GitHub
ninjapenguin/ClickableTableRows
Downloads
5932
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core/1.2.1:*

How to use

To use the plugin simply instantiate the class and give it the id of the target table.

window.addEvent('domready', function(){
    var ctr = new Clickable_Table_Rows('table-id', {'target-class':'row-link'});
})

Thats all!


Known Issues

The plugin has been tested in Safari, Firefox and Chrome but NOT IE.

Any feedback greatly appreciated!


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus