Update Base Generated Application with Example Coding

Update Base Generated Application with Example Coding

robbsandyrobbsandy Posts: 10Questions: 4Answers: 0

A. Create datatables basic application using the datatables “Generator” for database connection/functionality.
B. Modifying basic application with an example structure.

Example:
Simple inline editing

Javascript
HTML
CSS
Sever script..

And addition, adding the files listed below the coding.

var editor; // use a global for the submit and return data rendering in the examples

.....

Question:

  1. Does the javascript coding needed to initialise table replace the generated table.XXXXX.js or added as an additional file.
    Automated generated file was table.xxxx.js.
  2. Will I need to add the other files listed in the example, or did the generator file create them?

This question has an accepted answers - jump to answer

Answers

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

    If you want to add inline editing into an Generator created file, add the code to trigger inline editing into the table.XXXXX.js file after the Editor instance has been created:

        $('#example').on( 'click', 'tbody td', function (e) {
            editor.inline( this );
        } );
    

    That's all that is needed for inline editing, but if you want to do other things, then you might need to add other files.

    Allan

  • robbsandyrobbsandy Posts: 10Questions: 4Answers: 0

    Thanks again for all the help. Very clear and helpful.

This discussion has been closed.