Skip to content

ui.aggrid render failed when options["columnDefs"]["flex"] = 1 after upgrade to version 3.0 #5276

@guyingbo

Description

@guyingbo

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

ui.aggrid({
    "columnDefs": [
        {"headerName": "Name", "field": "name", "width": 200},
        {"headerName": "Age", "field": "age", "minWidth": 200, "flex": 1},
        {"headerName": "Parent", "field": "parent", "hide": True},
    ],
    "rowData": [
        {"name": "Alice", "age": 18, "parent": "David"},
        {"name": "Bob", "age": 21, "parent": "Eve"},
        {"name": "Carol", "age": 42, "parent": "Frank"},
    ],
    "rowSelection": {"mode": "multiRow"},
})

Description

When "flex": 1 is added, grid failed to render on version 3.x

NiceGUI Version

3.0.4

Python Version

3.12

Browser

Chrome

Operating System

macOS

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType/scope: A problem that needs fixingreviewStatus: PR is open and needs review

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions