How do I configure the keys extension to use allIfChanged submit style

How do I configure the keys extension to use allIfChanged submit style

dmardmar Posts: 2Questions: 1Answers: 0

Start with something like this:

https://editor.datatables.net/examples/inline-editing/simple.html

Set allIfChanged so the whole row is submitted to the server

editor.inline( this, {submit: 'allIfChanged' );

.. should work.

Now add excel functionality to the table

keys: {
  columns: ':not(:first-child)',
  editor: editor
}

Behaviour is split:
- if the user navigates to a cell using the keyboard the submit is in the 'changed' style
- if the user navigates to a cell using the mouse the submit is in the 'allIfChanged' style

My Question:
How do I configure the keys extension to use allIfChanged submit style ?

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Use the formOptions.inline option in Editor's initialisation to change the default for that instance. KeyTable will use whatever the Editor's default is.

    Regards,
    Allan

  • dmardmar Posts: 2Questions: 1Answers: 0

    That works. Thank you.

This discussion has been closed.