uki icon indicating copy to clipboard operation
uki copied to clipboard

Table doesn't trigger selection event

Open egonelbre opened this issue 12 years ago • 2 comments

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");
});```

egonelbre avatar Aug 11 '12 13:08 egonelbre

Found it:

uki("#tbl List").bind("selection", function(){
   console.log("selection changed");
})

Maybe it should be included in the Table example.

egonelbre avatar Aug 11 '12 14:08 egonelbre

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.

NathanaelA avatar Aug 27 '12 23:08 NathanaelA