Skip to content

Update for including all TableTool assets #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2012
Merged

Update for including all TableTool assets #28

merged 2 commits into from
Sep 6, 2012

Conversation

superscott
Copy link
Contributor

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>'

Added the /media folder for the TableTools plugin, and corrected the
css, js and swf paths and references to allow to be used in the rails
pipeline.
including fnFilterOnReturn.js
@superscott
Copy link
Contributor Author

It also fixes the standard dataTables assets for images in the standard css

rweng added a commit that referenced this pull request Sep 6, 2012
Update for including all TableTool assets
@rweng rweng merged commit be3586b into rweng:master Sep 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants