Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82434

how to avoid the column of checkbox binding data from js array

$
0
0
                                                                      <thead>
										<tr>
											<th class="center">
												<label>
													<input type="checkbox" />
													<span class="lbl"></span>
												</label>
											</th>
											<th>Domain</th>
											<th>Price</th>
											<th class="hidden-480">Clicks</th>

											<th class="hidden-phone">
												<i class="icon-time bigger-110 hidden-phone"></i>
												Update
											</th>
											<th class="hidden-480">Status</th>

											<th>operation</th>
										</tr>
									</thead>

$('#sample-table-2').dataTable( {
				"aaData":[
					["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],
					["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],					
					["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],					
					["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"],					
					["aaa","bbbb","cccccc","Sitepoint","http://sitepoint.com","Blog","2013-10-15 10:30:00"]					
				  ],
				
				  "aoColumnDefs":[{
						"aTargets": [ 0 ], 
						"bSortable": false, 
						"mdata":null,
						"mRender": function ( url, type, full )  {
						  return  '<label><input type="checkbox" /><span class="lbl"></span></label>';
						},
						"sClass": 'center',
				  }]
				  
				  } ); 

please tell me how to avoid "aaa" binding to targets[0],I want to skip it so that I can put six values to seven columns

I think the checkbox don't have bind any values because it is insignificance

Viewing all articles
Browse latest Browse all 82434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>