Replies: 3 comments 2 replies
-
Sorry, @ovaisa ! I forgot to come back here to answer. Take a look at https://github.com/iTwin/appui/blob/master/ui/appui-react/src/appui-react/selection/HideIsolateEmphasizeManager.ts to see how to dispatch a custom SyncUi event. If it's not what you need, let me know. Nancy McCall |
Beta Was this translation helpful? Give feedback.
-
Hi Nancy, I am already using custom SyncUi events extensively to manage toolbars buttons/appearance (using If I have my own callback for toolbar buttons, I know when a button is selected and I can generate UIEvents. But in case of CoreTools buttons, actions are managed by iTwin and I am unable to find out when user selects these CoreTools buttons. In this specific instance, I want to know when user selects the two CoreTools buttons in the code above ( In an unrelated post much earlier, I was told by Bentley SyncUi events are generated during CoreTool actions. I want to know what they are so that I can react to them to manage toolbar appearance (for these two CoreTools). Ovais |
Beta Was this translation helpful? Give feedback.
-
I added the following code to examine what events are being raised
When I select one of the buttons added by SyncUI: Set(1) {'configurableui:set_toolprompt'} I don't see "tool-admin-refresh-ui" event. Am I missing something. In addition, I would like to find out exactly which tool ran, not just any tool, so that I can update toolbar accordingly. Thanks, Ovais |
Beta Was this translation helpful? Give feedback.
-
I have a custom toolbar that includes of CoreTools toolbar buttons (pls see code below)
I would like to add two conditional button (using
isHidden
parameter), one to clear measurement and second to clear section after user selects one of these tools.I want to know if there is SyncUiEvent that I can listen to find out when user selects one of the menu options in these two groups. It seems a
toolactivated
event is generated but it doesn't seem to indicate which of these two were chosen.Thanks,
Ovais
Beta Was this translation helpful? Give feedback.
All reactions