с использованием jquery datatables - как мне сделать, чтобы мой ввод показывал null
data: null,
name: "MillerLite",
render: function (data, type, row) {
if (type === 'display') {
return '<input name="MillerLite" value="' + data.toString() + '" />';
}
return data;
}
Я пробовал - но это показывает [null Null]
data: null,
name: "MillerLite",
render: function (data, type, row) {
if (type === 'display') {
return '<input name="MillerLite" value="' + data.toString() + '" />';
}
return data;
}
А также - но это показывает левую скобку по умолчанию {
data: null,
name: "MillerLite",
render: function (data, type, row) {
if (type === 'display') {
return '<input name="MillerLite" value="' + JSON.stringify(data) + '" />';
}
return JSON.stringify(data);
}