Why are fnSetFocus and fnCellFromCoords private?
Why are fnSetFocus and fnCellFromCoords private?
I have a DataTable with KeyTable (with jEditable plugged in) enabled where the first three columns should not receive focus when navigating the table.
I finally did this by modifying KeyTable.js exposing those two methods and then
[code]
keys.event.focus(0, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
keys.event.focus(1, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
keys.event.focus(2, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
[/code]
Why aren't this methods public in the official release? They offer a lot more flexibility in KeyTable's usage.
I finally did this by modifying KeyTable.js exposing those two methods and then
[code]
keys.event.focus(0, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
keys.event.focus(1, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
keys.event.focus(2, null, function () {
pos = keys.fnGetCurrentPosition();
keys.fnSetFocus(keys.fnCellFromCoords(3, pos[1]), true);
});
[/code]
Why aren't this methods public in the official release? They offer a lot more flexibility in KeyTable's usage.
This discussion has been closed.
Replies
Allan
Allan
It certainly seemed strange to me that KeyTable didn't have maintenance releases :)
Thanks!
Allan