jQuery UI isn't applied properly.
jQuery UI isn't applied properly.
Hi,
I'm writing small web app for my MA and i have problem with proper appliance of jQuery UI (i'm also using ColVis) it looks just wrong:
http://wstaw.org/h/feb9666d51d/
DataTable initialization code:
[quote]var dTable = $('#grid').dataTable({
'oLanguage': {
"sSearch": "Search all columns "
},
'sDom': 'C<"clear"><"H"lfr>t<"F"ip>',
//'sDom': 'C<"clear">lfrtip',
'oColVis': {
'aiExclude': [ 1 ]
},
'bProcessing': true,
'bServerSide': true,
'bFilter': true,
'bStateSave': false,
'bJQueryUI': true,
'sAjaxSource': '/wifi/now',
'sPaginationType': 'full_numbers',
'aoColumns': [
{ 'mDataProp': '_id', 'sTitle': 'id', 'sWidth': '50px' },
{ 'mDataProp': 'source', 'sTitle': 'source' },
{ 'mDataProp': 'beginlease', 'sTitle': 'beginlease', 'sType': 'date', 'sWidth': '300px' },
{ 'mDataProp': 'endlease', 'sTitle': 'endlease', 'sType': 'date', 'sDefaultContent' : 'none', 'sWidth': '300px' },
{ 'mDataProp': 'macaddr', 'sTitle': 'macaddr' },
{ 'mDataProp': 'ipaddr', 'sTitle': 'ipaddr' },
{ 'mDataProp': 'login', 'sTitle': 'login' },
],
'aaSorting': [[ 2, 'desc' ]],
'bAutoWidth': false,
'fnServerData': function( sSource, aoData, fnCallback ) {
$.ajax( {
'dataType': 'json',
'type': 'POST',
'url': sSource,
'data': aoData,
'success': fnCallback
});
}
});[/quote]
Html part is rather trivial (and proper i suppose)
[quote]
[/quote]
It may be something wrong with sDom param?. There is no other js/css code than jquery, jquery ui (w/ theme), colvis and datatable. I'm not good js programmer, so if it's something trivial don't laugh at me pls.
I'm writing small web app for my MA and i have problem with proper appliance of jQuery UI (i'm also using ColVis) it looks just wrong:
http://wstaw.org/h/feb9666d51d/
DataTable initialization code:
[quote]var dTable = $('#grid').dataTable({
'oLanguage': {
"sSearch": "Search all columns "
},
'sDom': 'C<"clear"><"H"lfr>t<"F"ip>',
//'sDom': 'C<"clear">lfrtip',
'oColVis': {
'aiExclude': [ 1 ]
},
'bProcessing': true,
'bServerSide': true,
'bFilter': true,
'bStateSave': false,
'bJQueryUI': true,
'sAjaxSource': '/wifi/now',
'sPaginationType': 'full_numbers',
'aoColumns': [
{ 'mDataProp': '_id', 'sTitle': 'id', 'sWidth': '50px' },
{ 'mDataProp': 'source', 'sTitle': 'source' },
{ 'mDataProp': 'beginlease', 'sTitle': 'beginlease', 'sType': 'date', 'sWidth': '300px' },
{ 'mDataProp': 'endlease', 'sTitle': 'endlease', 'sType': 'date', 'sDefaultContent' : 'none', 'sWidth': '300px' },
{ 'mDataProp': 'macaddr', 'sTitle': 'macaddr' },
{ 'mDataProp': 'ipaddr', 'sTitle': 'ipaddr' },
{ 'mDataProp': 'login', 'sTitle': 'login' },
],
'aaSorting': [[ 2, 'desc' ]],
'bAutoWidth': false,
'fnServerData': function( sSource, aoData, fnCallback ) {
$.ajax( {
'dataType': 'json',
'type': 'POST',
'url': sSource,
'data': aoData,
'success': fnCallback
});
}
});[/quote]
Html part is rather trivial (and proper i suppose)
[quote]
[/quote]
It may be something wrong with sDom param?. There is no other js/css code than jquery, jquery ui (w/ theme), colvis and datatable. I'm not good js programmer, so if it's something trivial don't laugh at me pls.
This discussion has been closed.
Replies
Allan