uki
uki copied to clipboard
Table doesn't trigger selection event
I'm using a table and I'm unable to get the "selection" binding working. Is there some other binding that should be used instead?
uki({
id: 'tbl',
view: 'Table',
rect: '10 10 100 500',
anchors: 'top right left bottom',
columns : [
{ view : "table.CustomColumn", label: 'hello', width : 100},
],
rowHeight: 22,
data: []
}).attachTo( window, '1010 1010' );
var data = [];
for(var i = 0; i < 100; i += 1)
data.push(["world " + i]);
uki("#tbl").data(data);
uki("#tbl").bind("selection", function(){
console.log("selection changed");
});```
Found it:
uki("#tbl List").bind("selection", function(){
console.log("selection changed");
})
Maybe it should be included in the Table example.
This bug (and many others) were fixed a while ago in my branch -- https://github.com/nathanaela/uki. Vladimir Kolesnikov appears to have for the most part disappeared and I assume must be really busy, so the primary branch does not seem to see any maintenance.