I can't auto focus the first cell (by focus: ':eq(0)' )
I can't auto focus the first cell (by focus: ':eq(0)' )
in KeyTable
Link to test case: https://obmen1.pbteamstudio.com/opers.html
I can't auto focus the first cell (by focus: ':eq(0)' )
let table = $(TABLE_ID).DataTable({
...
keys: {
editor: editor,
focus: ':eq(0)',
blurable: false,
},
...
});
Please indicate what I am doing wrong!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Working solution is:
But, why
keys.focus: ':eq(0)'didn't work?My guess is KeyTable tries the
focus: ':eq(0)',option before the table is loaded from Ajax and thetdis not in the DOM yet.Kevin