Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhenke/datatablesforwheels
DataTables For Wheels
https://github.com/mhenke/datatablesforwheels
Last synced: 18 days ago
JSON representation
DataTables For Wheels
- Host: GitHub
- URL: https://github.com/mhenke/datatablesforwheels
- Owner: mhenke
- Created: 2010-10-02T19:32:25.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-06T23:33:06.000Z (over 14 years ago)
- Last Synced: 2024-11-11T09:50:01.410Z (3 months ago)
- Language: ColdFusion
- Homepage: http://cfwheels.org/plugins/listing/45
- Size: 117 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
CFWheels plugin for DataTables v0.4
http://github.com/mhenke/DataTablesForWheelsThird party software used:
http://www.datatables.net/
http://jquery.com/Requires:
# Wheels 1.0.5
# DataTables jQuery plugin
# jQuery
TO USE
1) Place the DataTables-X.X.zip in your plugins folder2) Add this code to your /Controllers/Controller.cfc
3) Reload your Wheels application.
Example: http://localhost/index.cfm?reload=trueYou should be good to go now.
EXAMPLES OF USE
In your view file include:
#javaScriptIncludeTag("jquery-1.4.2.min")#
#stylesheetLinkTag("demo_table")#
#getdatatablesJS("datatables","example")#
#getdatatablesHTML(myActionName,myColumnNames)#In your Controller have a function called your ACTION NAME that returns a query.
DEMO
Unzip the Demo-x.x.zip file into CFWheel's webroot.
You will need to place the jquery and dataTables js files in your javascripts folder
You will need to place the demo_table.css in your stylesheets folder
You will need to place the dataTables images in your images folderLoad - http://localhost/index.cfm/datatables/demo