Does Editor v1.8 support nested tables?
Does Editor v1.8 support nested tables?
DataTables (1.10.19)
Editor (1.8)
We are trying to implement a user interface that requires nested tables. Are nested tables supported in the versions we are using? Here is some setup sample code:
editor1.add( [ {
label: "test label,
name: "compositebarcode"
},
{
label: 'Dates Received',
name: 'dates',
type: 'datatable',
editor: dateReceivedEditor,
config: {
ajax: '/datesreceived',
buttons: [
{ extend: 'create', editor: dateReceivedEditor },
{ extend: 'edit', editor: dateReceivedEditor },
{ extend: 'remove', editor: dateReceivedEditor }
],
columns: [
{
title: 'Date Received',
data: 'thedate'
}
]
}
}
]
);
dateReceivedEditor = new $.fn.dataTable.Editor({
ajax: '/datesreceived',
fields: [
{
label: 'Received Date:',
name: 'thedate'
}
]
});
Answers
According to the
datatable
field type docs this field was introduced in Editor 2.0.Kevin
Yup - as Kevin says,
datatable
was added in Editor 2.0. It was one of the big new features in the release. Details about what was in 2.0 available here.Allan