Below code prints (true,true), but i don’t see toolsOverlay, toolStylePopup both element
to be open when page loads. It remain close there.Is there any mistake or i left something?
My requirement is when i click on shapeToolGroupButton ( Shape button ), automatically,
toolsOverlay and toolStylePopup should be open for current selected shape, so that i do not have to click again to get the option of color,thickness etc. Is it possible to do that?
The reason why they don’t display in the viewer is that the toolStylePopup doesn’t know where it should locate itself.
You can listen to the toolModeUpdated event, check the tool names, and then open the component. The code below opens the style popup component when the current tool mode is rectangle tool.