Skip to content

APPUI Viewport Frontstage Tools #201

Answered by NancyMcCallB
paprophet asked this question in Q&A
Discussion options

You must be logged in to vote

The AppUi Viewport Frontstage Sample uses the standard Tool and Navigation widgets (named BasicToolWidget and Basic Navigation Widget, respectively). If you'd like to add tools, you have two options:

  1. Add them to the standard widgets at load time, as we illustrate in the Add Toolbar Button sample
    or
  2. Create your own widget(s) and put your custom widgets in the frontstage definition. You can copy the source from imodeljs/ui/src/ui-framework/widgets/BasicToolWidget.tsx, change the name (to avoid confusion) and change the toolbar items that are returned from the getHorizontalToolbarItems() and getVerticalToolbarItems() methods to whatever you want. You'll find a list of tool defintions in imo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pmconne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants