Skip to content

Table doesn't trigger selection event #43

@egonelbre

Description

@egonelbre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions