필터 지우기
필터 지우기

UiTable Cell Selection Callback executes only when cell selection changes

조회 수: 13 (최근 30일)
crawler
crawler 2019년 2월 8일
댓글: Bereketab Gulai 2020년 12월 15일
In AppDesigner, the cell selection call back only executes when the cell selection changes.
Thus I believe this is more accrately a 'cell selection changed' callback?
How do you get the callback to execute everytime it is selected without clicking a different cell first?
Thanks!
  댓글 수: 2
Kevin Phung
Kevin Phung 2019년 2월 9일
I have been trying to work this out too..and I have been convinced that it's currently not a thing :(. hoping someone can prove me wrong
Bereketab Gulai
Bereketab Gulai 2020년 2월 14일
This is not intuitive and is not what most users are familiar with but Mathworks team might have reason for this.

댓글을 달려면 로그인하십시오.

답변 (1개)

shubham bawankar
shubham bawankar 2020년 12월 14일
편집: shubham bawankar 2020년 12월 14일
There is no way, as of now, to trigger cellSelectionCallback by pressing same cell again. I can suggest a work around for this, assuming you don't want to click any other cell, and want to initiate another callback for same cell.
Select column header (which will select whole column) and in your cellSelection Callback, add following lines in the start.
if size(event.Indices,1)>1
return;
end
We have to switch selection, but I assume you don't want to do it by selecting other cell as it may trigger callback for that particular cell, that's why I'm suggesting to select column and use the code mentioned above.
  댓글 수: 1
Bereketab Gulai
Bereketab Gulai 2020년 12월 15일
For our project, we used Tabulator js lib with the HTML component and implementing necessary callbacks using a switch case and a key-value pair messaging...
This workaround is not really helpful, because staff would have to be told that they need click this and that.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by