Datatables Editor - Replacing Editor Fields with custom Fields?

Datatables Editor - Replacing Editor Fields with custom Fields?

pekorpitpekorpit Posts: 7Questions: 3Answers: 0

Hello, this is kind of a question, but also a suggestion for future implementation of Datatables Editor.

In my prototyping use of Datatables Editor I have found out that many uses cases require also Editable Form (so Form + Table is the most common setup, but combinations may vary). I have used Datatables Editor as a base for Editable Table, and will implement Editable Form also. These are basically used to generate UI automatically to access data in another system.

Form displays "header" type data and Table displays "rows" type data. Both Table and Form should have common look and feel, leveraging on common Fields that operate the same in both use cases, although background data update methods of Fields might differ a little bit...

Is there a way to have Datatables Editor bubble/inline edit to be pointed to non-table element? So that I could benefit from one look and feel with Fields that should look and behave the same between Form and Table? My current conclusion is that this is not possible, but this is something that could be looked into by Datatables Editor developers. Form + Table is normal use case, and if you would provide X-Editable type solution that could be used to make Forms that look and feel the same as Datatables Editor then this most likely would be of great value.

But as this is not possible now, I have successfully prototyped replacing Datatables Editor bubble and inline edit by using X-Editable instead.

Have you faced this same conundrum, and what are you tips and tricks to resolve this kind of problem, so that only one Field implementation would need to be done for both Form and Table. (Update methods might vary between Form and Table Fields, but this could be configurable option for Field.)

Do you feel that there are vastly superior alternatives to X-Editable for creating Form + Table Fields? What have you used in your own devlopment?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,872Questions: 1Answers: 10,526 Site admin
    Answer ✓

    Is there a way to have Datatables Editor bubble/inline edit to be pointed to non-table element?

    Yes - if you are editing non-table content you can use Editor in standalone mode. Editor still uses some of the DataTables API methods in order to perform its data manipulation, but it doesn't require a DataTable in order to be able to edit data (although that is obviously the primary use case).

    Regards,
    Allan

This discussion has been closed.