Simply add it within plugin code:
[wp-datatable id="ID" fat="LEVEL"]
paging: false,
responsive: true,
search: true,
sDOM: "xxxx",
initComplete: function....
//.. and more - see https://datatables.net/reference/option for full reference
[/wp-datatable]
Content of wp-datatable shortcodes will be used as content for DataTable() init.
But there is a catch, if the code within shortcode is too complicated, wordpress editor might corrupt it, because it is not well suited for such a thing. In that case, you’ll have to use this plugin only for provisioning of javascript – simply use only [wp-datatable]
in the post/page, and the initialization of DataTables has to be done somewhere else, via really pure Javascript like:
<script type="text/javascript">
jQuery(document).ready(function () {
var $dt = jQuery('#' + $DT_name).DataTable({
"sDom": '<"H"lfr>t<"F"ip>',
//....
});
</script>
You might have to use another plugin for inclusion of that pure Javascript to accomplish this.