Table in custom field type
Table in custom field type
Is it possible to get the Editor to display a table as a custom field?
I've got this in the _fieldTypes.todo "create" function:
conf._input = $('<table id="'+Editor.safeId( conf.id )+'"><thead><tr><th>Id</th>'+'<th>Employee</th>'+'</tr></thead></table>');
And then I've got this in the _fieldTypes.todo "set" function:
$('#'+Editor.safeId(conf.id)).append("<tr><td>1</td><td>Thomas</td></tr>");
And yet only the table headers are displayed by the Editor, i.e. Id and Employee.
Any idea where I'm going wrong?
Thanks.