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

"ConditionalStringValue" doesn't update widget label #665

Open
AparupaB opened this issue Jan 8, 2024 · 1 comment
Open

"ConditionalStringValue" doesn't update widget label #665

AparupaB opened this issue Jan 8, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@AparupaB
Copy link

AparupaB commented Jan 8, 2024

Describe the bug
We (the Substation team) are trying to update a widget's label after it has been loaded. Our use case is, that we have 3 widgets: A, B and C. A and B are the top widgets in the same panel and C is the bottom widget in the same panel. When A is opened we want to set C's label to "equipment browser" and when B is opened we want it to change to "parts browser". I tried to implement it using ConditionalStringValue but it didn't quite work.

As a workaround, it was suggested to use the setLabel method on Uiframework.frontstages.activeFrontstageDef.findWidgetDef(id: string).

Expected behavior
The widget label should automatically update when using the ConditionalStringValue and when the event is triggered.

  • iTwin.js AppUI Version: 4.6.1
  • iTwin.js Version: 4.2.4
@FlyersPh9 FlyersPh9 added the bug Something isn't working label Jan 8, 2024
@raplemie
Copy link
Contributor

Thanks for this, we'll look into this!

@joehenry9498 joehenry9498 self-assigned this Jan 22, 2024
@joehenry9498 joehenry9498 removed their assignment Jan 31, 2024
@GerardasB GerardasB added the good first issue Good for newcomers label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants