Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhenke/datatablesforwheels

DataTables For Wheels
https://github.com/mhenke/datatablesforwheels

Last synced: 18 days ago
JSON representation

DataTables For Wheels

Awesome Lists containing this project

README

        

CFWheels plugin for DataTables v0.4
http://github.com/mhenke/DataTablesForWheels

Third 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 folder

2) Add this code to your /Controllers/Controller.cfc

3) Reload your Wheels application.
Example: http://localhost/index.cfm?reload=true

You 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 folder

Load - http://localhost/index.cfm/datatables/demo