How do I configure the keys extension to use allIfChanged submit style
How do I configure the keys extension to use allIfChanged submit style
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 ?
This discussion has been closed.
Answers
Use the
formOptions.inlineoption in Editor's initialisation to change the default for that instance. KeyTable will use whatever the Editor's default is.Regards,
Allan
That works. Thank you.