Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
added mDataProp to other datatable instances
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed Jun 26, 2014
1 parent feff58c commit b44693e
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions test/app/webroot/js/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ $(function() {
"sAjaxSource": "/cities/containable.json",
"sDom": 'CRTfrtip',
"aoColumns": [
{mData:"Preference.name"},
{mData:"Preference.category"},
{mData:"Preference.value"}
{mData:"City.id"},
{mData:"City.name"},
{mData:"State.name"},
{mData:"City.population"},
],
"fnCreatedRow": function(nRow, aData, iDataIndex){
$('td:eq(3)', nRow).html('<button onclick="alert(\'City.id is '+aData.City.id+'\')">Button</button>');
Expand All @@ -53,9 +54,10 @@ $(function() {
"sAjaxSource": "/cities/concat.json",
"sDom": 'CRTfrtip',
"aoColumns": [
{mData:"Preference.name"},
{mData:"Preference.category"},
{mData:"Preference.value"}
{mData:"City.id"},
{mData:"City.name"},
{mData:"State.name"},
{mData:"City.population"},
],
"fnCreatedRow": function(nRow, aData, iDataIndex){
$('td:eq(2)', nRow).html('<button onclick="alert(\'City.id is '+aData.City.id+'\')">Button</button>');
Expand All @@ -73,9 +75,10 @@ $(function() {
"sAjaxSource": "/cities/virtualFields.json",
"sDom": 'CRTfrtip',
"aoColumns": [
{mData:"Preference.name"},
{mData:"Preference.category"},
{mData:"Preference.value"}
{mData:"City.id"},
{mData:"City.name"},
{mData:"State.name"},
{mData:"City.population"},
],
"fnCreatedRow": function(nRow, aData, iDataIndex){
$('td:eq(2)', nRow).html('<button onclick="alert(\'City.id is '+aData.City.id+'\')">Button</button>');
Expand All @@ -90,9 +93,10 @@ $(function() {
"sAjaxSource": "/cities/noJsonHandler",
"sDom": 'CRTfrtip',
"aoColumns": [
{mData:"Preference.name"},
{mData:"Preference.category"},
{mData:"Preference.value"}
{mData:"City.id"},
{mData:"City.name"},
{mData:"State.name"},
{mData:"City.population"},
],
"fnCreatedRow": function(nRow, aData, iDataIndex){
$('td:eq(3)', nRow).html('<button onclick="alert(\'City.id is '+aData.City.id+'\')">Button</button>');
Expand Down

0 comments on commit b44693e

Please sign in to comment.