I use DataTables for dynamic table from a MySql table. Everything is displayed fine except the empty cell which display as "Click to edit". Is there anyway not to display this but just a empty cell?
Hi,
I have seen this post when i was searching for some other problem and I noticed it is a bit old, but I had same problem time ago and i can answer how to help this.
Jeditable has a parameter called 'placeholder' and you can set with any text you want to show when cell is empty.
Replies
I have seen this post when i was searching for some other problem and I noticed it is a bit old, but I had same problem time ago and i can answer how to help this.
Jeditable has a parameter called 'placeholder' and you can set with any text you want to show when cell is empty.
A simple example can be this one:
$('td', oTable.fnGetNodes()).editable(function(value, settings) {
return(value);
}, {
placeholder : ' '
});
So it will show empty when cell is empty.
Hope it helps.
Regards.
$('td', oTable.fnGetNodes()).editable(function(value, settings) {
return(value);
}, {
placeholder : ' '
});