Skip to content

Paging, column visibility selectors invisible in ITable (2.4.0, marimo/anywidget) #387

@liquidcarbon

Description

@liquidcarbon

When used in marimo, the UI that opens on clicking colvis or pagination is hidden and unusable.

The helpful "X rows copied to clipboard" message that appears on copying is also hidden; the contents do go into the clipboard.

When you click on either of the buttons, a second scroll bar appears on the right, suggesting it's a CSS issue.

https://marimo.app/l/w73z4l (may need to run 2-3 times while it installs packages)
or:

import pandas as pd
from itables import options as itoptions
from itables.widget import ITable

itoptions.layout = {
    "top": {
        "buttons": [
            {
                "extend": "copyHtml5",  #  <--- THE COPY BUTTON
                "messageBottom": None,
                "messageTop": None,
                "title": None,
            },
            "csvHtml5",
            {
                "extend": "colvis",
            },
            "pageLength",
        ],
    },
    "top2": "search",
    "top3": "info",
    "topStart": None,
    "topEnd": None,
    "bottom": "paging",
    "bottomStart": None,
    "bottomEnd": None,
}

df = pd.DataFrame({"x": [2, 1, 3], "y": list("cbc")})

ITable(df)

Metadata

Metadata

Assignees

Labels

marimoITables in Marimo

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions