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

'cellRenderer': 'checkboxRenderer' for ui.table stopped working in NiceGui version 1.0. #228

Closed
JS-Aibel opened this issue Jan 5, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@JS-Aibel
Copy link

JS-Aibel commented Jan 5, 2023

To be able to work with checkboxes in the ui.table we used the 'cellRenderer': 'checkboxRenderer' in a column definition with NiceGui version 0.0.9.

'columnDefs': [
    {'headerName': "",'field': "enabled", 'cellRenderer': 'checkboxRenderer', 'maxWidth': 40},

After updating to NiceGui version 1.0. we are not able to use the 'cellRenderer': 'checkboxRenderer'. Has this anything to do with NiceGUI 1.0 does not use JustPy anymore?

@falkoschindler
Copy link
Contributor

You are right. This undocumented feature got lost when leaving JustPy behind in version 1.0. But I just added it in 55f1e43.

The following example table uses the "checkboxRenderer":

ui.table({
    'columnDefs': [
        {'field': 'done', 'cellRenderer': 'checkboxRenderer'},
        {'field': 'task'},
    ],
    'rowData': [
        {'task': 'Clean up', 'done': True},
        {'task': 'Call parents', 'done': True},
        {'task': 'Buy dog food', 'done': False},
    ],
})

@falkoschindler falkoschindler self-assigned this Jan 5, 2023
@falkoschindler falkoschindler added the enhancement New feature or request label Jan 5, 2023
@falkoschindler falkoschindler added this to the v1.1.0 milestone Jan 5, 2023
@falkoschindler
Copy link
Contributor

This feature will be available in the next release of version 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants