We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think on this line the args when being passed to run_method need to be expanded.
nicegui/nicegui/elements/table.py
Line 34 in f58ff70
Otherwise call_api_method calls api with an array of single element which contains the actual args.
A simple way to replicate this issue is to call
filter = { 'account': { 'filterType': 'text', 'type': 'equals', 'filter': '1001' } } table.call_api_method('setFilterModel', filter)
Which then results in "AG Grid: setFilterModel() - no column found for colId: 0"
The text was updated successfully, but these errors were encountered:
#233 expand args in table.call_api_method
bf9a316
You are absolutely right. Thanks for pointing this out!
I fixed it in bf9a316.
Here is an example to try it out:
table = ui.table({ 'columnDefs': [{'field': 'name', 'filter': True}], 'rowData': [{'name': 'Alice'}, {'name': 'Bob'}, {'name': 'Carol'}], }) filter = { 'name': { 'filterType': 'text', 'type': 'equals', 'filter': 'Alice' } } ui.button('Filter', on_click=lambda: table.call_api_method('setFilterModel', filter))
Sorry, something went wrong.
#233 add test
9039de0
falkoschindler
No branches or pull requests
I think on this line the args when being passed to run_method need to be expanded.
nicegui/nicegui/elements/table.py
Line 34 in f58ff70
Otherwise call_api_method calls api with an array of single element which contains the actual args.
A simple way to replicate this issue is to call
Which then results in "AG Grid: setFilterModel() - no column found for colId: 0"
The text was updated successfully, but these errors were encountered: