Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to View Single Row in Table with Pagination Enabled #2325

Open
nipunchamikara opened this issue Apr 26, 2024 · 0 comments
Open

Unable to View Single Row in Table with Pagination Enabled #2325

nipunchamikara opened this issue Apr 26, 2024 · 0 comments
Labels
bug Bug in code ui Related to UI

Comments

@nipunchamikara
Copy link
Member

Wave SDK Version, OS

v1.1.2

Actual behavior

When there is a single item in a table with pagination enabled, the item is not visible.

ui.table(
    name='table',
    pagination=ui.table_pagination(1, 10),
    columns=[ui.table_column(name='foo', label='Foo'), ui.table_column(name='bar', label='Bar')],
    rows=[
        ui.table_row(name='1', cells=['a', 'b']),
    ]
)
image

This might be part of an issue where the table resizes to show n - 1 rows when there are n rows. If there are 4 rows in the table, for example, the table automatically resizes to only show 3 rows

image

Expected behavior

The row should be visible.

Steps To Reproduce

  1. Create a table with a single row.
@nipunchamikara nipunchamikara added the bug Bug in code label Apr 26, 2024
@mturoci mturoci added the ui Related to UI label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in code ui Related to UI
Projects
None yet
Development

No branches or pull requests

2 participants