Skip to content

Conversation

@McGiogen
Copy link

With this change the plugin is able to adapt columns' width to fit the canvas width. If the canvas is larger than the optimized columns' size, the white space is divided equally between the columns. If the canvas is smaller than the optimized columns' size, these are reduced equally to fit only the space available.

You can create columns with a fixed width (which don't grow or shrink) this way:

{
    name: 'columnName',
    field: 'columnField',
    displayName: 'my column name',
    width: 50, // Fixed width
    enableColumnAutoFit: false, // Don't grow or shrink
}

If you want I can add a parameter to choose the behaviour to use for every table.

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

Successfully merging this pull request may close these issues.

1 participant