Open GoogleCodeExporter opened 9 years ago
Sorry not a defectjsut a question, I did not notice that selection before I
saved. I cannot figure out how to edit so I cannot correct the mistake.
Original comment by alindzo...@gmail.com
on 16 Feb 2012 at 4:24
Hi,
If problem is in formatting data that should be displayed, maybe you can sort
this out in the DataTables plugin directly. In DT plugin you can define
fnRender function that will be used to render/format cell content in some
column. As an example, to define that cell content of column 1 should be
wrapped in span with class money and add dollar sign at the end of value you
might set following in the DataTables call:
$('#example').dataTable( {
"aoColumns": [
null,
{ "fnRender": function ( oObj ) {
return '<span class="money">' + oObj.aData[1] +'$ </span>';
} },
null
]
} );
You can see more info about fnRender on datatables site.
However, in that case you will still have a simple text box for inline editing.
If you want to have inline editor that allows formatted input maybe you can
replace standard jeditable input with some custom input type see for example
masked input on http://www.appelsiini.net/projects/jeditable/custom.html
Let me know did this helped you.
Jovan
Original comment by joc...@gmail.com
on 16 Feb 2012 at 6:46
Original issue reported on code.google.com by
alindzo...@gmail.com
on 16 Feb 2012 at 4:22