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

select function not trigger observe #478

Open
CnBDM-Su opened this issue Feb 26, 2024 · 1 comment
Open

select function not trigger observe #478

CnBDM-Su opened this issue Feb 26, 2024 · 1 comment

Comments

@CnBDM-Su
Copy link

The selection function cannot trigger traitlets observe.

I am using select(), trying to realize control table both with manual and with function.
The observe function of table is only triggered when click, but not after select() function.

Do you know how to trigger it?

Example:
def func(change):
...
datagrid.observe(func, name=['selections'])
datagrid.select(row1=rows,column1=1,row2=rows, column2=1)

*func should be run based on new selections, but not.

@mmilch01
Copy link

mmilch01 commented May 6, 2024

I am also interested in resolving this. When onclick function is triggered, the selection returned in the field .selected_cell_values shows previous selection. I found no way so far to track current selection once it changed.

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

No branches or pull requests

2 participants