Does Editor v1.8 support nested tables?

Does Editor v1.8 support nested tables?

gribletgriblet Posts: 6Questions: 2Answers: 1

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

  • kthorngrenkthorngren Posts: 21,321Questions: 26Answers: 4,948
    edited July 5

    According to the datatable field type docs this field was introduced in Editor 2.0.

    Kevin

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    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

Sign In or Register to comment.