bubble edit on specific field as override for inline
bubble edit on specific field as override for inline
finsight-ak
Posts: 19Questions: 5Answers: 0
in Editor
I am using the keys option to bind the editor instance to the datatable. I am looking for documentation & example for the proper event & handling to inject a bubble editor instead of the inline for a specific field
keys: {
editor: editor
},
This does popup the bubble on the proper field, but the edit happens in the inline form, and if submitted the bubble will not close.
editTable.on('key', function (e, datatable, key, cell, originalEvent) {
if (key === 13 && cell.index().column === 15) {
editor.close();
editor.bubble(cell.node(), 'Comments', {
submitOnBlur: true
}
);
}
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
The
keys.editor
option will always useinline()
(unless you modify the library's code, which you can of course do). If you wanted to usebubble()
you would need to listen for thekey
event from KeyTable and decide what action to take, rather than using thekeys.editor
option.You might find the function that KeyTable uses to trigger inline editing useful to help get started in this regard.
Regards,
Allan
Got it! Your suggestion is spot on--thanks again!