Skip to content

Can Widget be pop'ed out by default? #1203

Closed Answered by GerardasB
aogbaires asked this question in Q&A
Discussion options

You must be logged in to vote

You can use https://www.itwinjs.org/reference/appui-react/frontstage/frontstagedef/popoutwidget/ API to popout a widget (i.e. when a toolbar button is clicked). Keep in mind that there are certain restrictions (which might be different depending on your environment - web vs electron).

Usage example in our test-app:

appui/apps/test-providers/src/ui/widgets/LayoutWidget.tsx

Line 275 in 265f8ab

frontstageDef!.popoutWidget(id, { x: xPos, y: yPos });

Answered in: #1207 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GerardasB
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