Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table doesn't trigger selection event #43

Open
egonelbre opened this issue Aug 11, 2012 · 2 comments
Open

Table doesn't trigger selection event #43

egonelbre opened this issue Aug 11, 2012 · 2 comments

Comments

@egonelbre
Copy link

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
Copy link
Author

Found it:

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

Maybe it should be included in the Table example.

@NathanaelA
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants