Skip to content

Set column width programmatically via Column API #5558

Closed Answered by lucajung
lucajung asked this question in Ideas
Discussion options

You must be logged in to vote

I have just found out that it already works with available functions:

table.setColumnSizing(() => {
    var obj: Record<string, number> = {};
    view.columns.forEach(col => {
        obj[col.id] = col.size;
    });
    return obj;
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lucajung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant