Collapse individual kanban columns

edited August 2017 in Technical questions

I'm looking for a way to collapse individual columns in a kanban view.

I'm displaying the days of a week in a kanban view. I would like the weekends to be displayed in a collapsed state.

I have tried the following:
$$("$accordionitem" + column).collapse();
But this does not work reliable since the ID changes when the view is rebuild.

So given a column number, how I can collapse an individual column?

Thank you for any advice,

Rob

Comments

  • edited January 31

    if you give the columns an id, you can address them

    var kanban = webix.ui({
        view:"kanban",
        cols:[
            { id:'col1', header:"Backlog", body:{ view:"kanbanlist", status:"new" }},
            { id:'col2', header:"In Progress", body:{ view:"kanbanlist", status:"work" }},
            { id:'col3', header:"Testing", body:{ view:"kanbanlist", status:"test" }},
            { id:'col4', header:"Done", body:{ view:"kanbanlist", status:"done" }}
        ],...
        });
    
    $$('col1').collapse();
    $$('col4').collapse();
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion