How to add multiple values to sDom?
How to add multiple values to sDom?
I need to show pagination on both top and bottom of the datatable which i am doing using <"top"lfip>rt<"bottom"ip<"clear">. I also want to show disclaimer message on top of the datatable which i was doing using lfr<"delete-disclaimer">tip. My question is how can i have both in sDom?
"sDom": 'lfr<"delete-disclaimer">tip,<"top"lfip>rt<"bottom"ip<"clear">' is not working.
"sDom": 'lfr<"delete-disclaimer">tip,<"top"lfip>rt<"bottom"ip<"clear">' is not working.
This discussion has been closed.
Replies
[code]
<"top"lfip<"delete-disclaimer">>rt<"bottom"ip<"clear">
[/code]
I think.
Allan
with these followings
1) "sDom": 'C<"clear">lfrtip'
2) "sDom": 'T<"clear">lfrtip'
3) "sDom": "Rlfrtip"
4) "sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
Allan
like "sDom": "C,T" ???
or can u please mention one example please ?
As I say, each character is a feature - just add them. So if you want ColVis and TableTools add 'CT'. It is that simple.
Allan
here is my example
var oTable = $('#example').dataTable( {
"sDom": "<'row'<'fLft'l><'fRgh'f>r>t<'row'<'fLft'i><'fRgh'p>>CTW",
"sDom": 'W<"clear">lfrtip',
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
},
"sAjaxSource": "js/objects_subarrays.txt",
"aoColumns": [
{ "mData": "engine", "sTitle": "Engine" },
{ "mData": "browser", "sTitle": "Browser" },
{ "mData": "platform", "sTitle": "Platform" },
{ "mData": "details.0", "sTitle": "Details .0" },
{ "mData": "details.1" , "sTitle": "Details .1" }
]
} );
how can i include ColVis and TableTools it ???
have i mentioned correctly ???
"sDom": "<'row'<'fLft'l><'fRgh'f>r>t<'row'<'fLft'i><'fRgh'p>>CTW",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
},
"sAjaxSource": "js/objects_subarrays.txt",
"aoColumns": [
{ "mData": "engine", "sTitle": "Engine" },
{ "mData": "browser", "sTitle": "Browser" },
{ "mData": "platform", "sTitle": "Platform" },
{ "mData": "details.0", "sTitle": "Details .0" },
{ "mData": "details.1" , "sTitle": "Details .1" }
]
} );
in this case even
CTW not working
is it right order ?
Allan