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

API to add or disable a button

$
0
0
I was trying to disable, add, or remove buttons.


"oTableTools": {
			"sRowSelect": "multi",
	
				"aButtons": [
				{ "sExtends": "editor_create", "editor": editor },
				{ "sExtends": "editor_edit",   "editor": editor },
				{ "sExtends": "editor_remove", "editor": editor }
			]
		}



I would like to be able to delete, add or hide the buttons but was unsure of what collection the belong to!

I was guessing
$(dataTable.oTableTools.('editor_create').update());
or
$(editor.oTableTools.('editor_create').update());

Thanks in advance.

Viewing all articles
Browse latest Browse all 82127

Trending Articles



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