Adding jQuery UI class to td
Adding jQuery UI class to td
ChrisGedrim
Posts: 10Questions: 0Answers: 0
Allan,
Is there any reason why you don't add a jQ UI class to td tags? (ui-widget-content & fg-widget-content for example)
I feel that it gives the table a more consistent feel. Whilst I know I could manually add the class in a couple of different ways:
[code]
var oTable = $('table').dataTable({
'fnDrawCallback': function(){
$('td').addClass('ui-widget-content')
}
});
[/code]
[code]
var oTable = $('table').dataTable({
"aoColumns": [
{ "sClass": "ui-widget-content" },
{ "sClass": "ui-widget-content" },
{ "sClass": "ui-widget-content" }
]
});
[/code]
would it not be better to add these classes in core when the rest of the UI classes are added?
-- Chris
Is there any reason why you don't add a jQ UI class to td tags? (ui-widget-content & fg-widget-content for example)
I feel that it gives the table a more consistent feel. Whilst I know I could manually add the class in a couple of different ways:
[code]
var oTable = $('table').dataTable({
'fnDrawCallback': function(){
$('td').addClass('ui-widget-content')
}
});
[/code]
[code]
var oTable = $('table').dataTable({
"aoColumns": [
{ "sClass": "ui-widget-content" },
{ "sClass": "ui-widget-content" },
{ "sClass": "ui-widget-content" }
]
});
[/code]
would it not be better to add these classes in core when the rest of the UI classes are added?
-- Chris
This discussion has been closed.
Replies
Allan