X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webapp%2Fresources%2Fdatatables-1.9.4%2Fexamples%2Fajax%2Fnull_data_source.html;fp=webapp%2Fresources%2Fdatatables-1.9.4%2Fexamples%2Fajax%2Fnull_data_source.html;h=55345a99ef93eee6fe345f1d58864086e8bd3029;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=0000000000000000000000000000000000000000;hpb=2e3f6b76be585306f1003d849831840c0adb3360;p=proteocache.git diff --git a/webapp/resources/datatables-1.9.4/examples/ajax/null_data_source.html b/webapp/resources/datatables-1.9.4/examples/ajax/null_data_source.html new file mode 100644 index 0000000..55345a9 --- /dev/null +++ b/webapp/resources/datatables-1.9.4/examples/ajax/null_data_source.html @@ -0,0 +1,214 @@ + + + + + + + DataTables example + + + + + + +
+
+ DataTables AJAX source example - null data source for a column +
+ +

Preamble

+

In some tables it can be useful to not need to specify any data source for a column, as it's content is automatically generated (for example using fnRender). This is fairly common with add, edit and delete columns for a CRUD interface. You can now use the mData set to null to specify that the column has no data source. DataTables will render this column as empty.

+ +

Live example

+
+ + + + + + + + + + + + +
Rendering engineBrowserPlatform(s)Engine versionCSS gradeEmpty!
+
+
+ + +

Initialisation code

+
$(document).ready(function() {
+	var oTable = $('#example').dataTable( {
+		"bProcessing": true,
+		"sAjaxSource": "sources/arrays.txt",
+		"aoColumns": [
+			null,
+			null,
+			null,
+			null,
+			null,
+			{ "mData": null }
+		]
+	} );
+} );
+ + + +

Server response

+

The code below shows the latest JSON data that has been returned from the server in response to the Ajax request made by DataTables. This will update as further requests are made.

+

+			
+			
+			

Other examples

+ + + + + + +
+ + \ No newline at end of file