Update for including all TableTool assets #28
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update for including the media folder for TableTool plugin and editing the paths for css, js and swf files to work within the Rails asset pipeline.
Also included the TableTools version 2.1.3 js file
Should only need to do the following to activate:
Application.css
*= require dataTables/src/demo_table_jui (only need to include if you're using that style with jQueryUI)
*= require dataTables/extras/TableTools
Application.js
//= require dataTables/jquery.dataTables
//= require dataTables/extras/TableTools
//= require dataTables/extras/ZeroClipboard
Then add the following sDom attribute to your dataTable:
sDom: 'T<"clear">lfrtip
If you're using the jQueryUI add the following to your dataTable:
bJQueryUI: true,
sDom: 'T<"clear"><"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"lfr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"ip>'