You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested API:
Add the Toolbar.PopoverItem component which wraps a Toolbar.Item in a blueprintjs Popover
Used in a toolbar it would look something like this:
<Toolbar><Toolbar.Item/><Toolbar.PopoverItemitemProps={{/* can pass props to configure the toolbar item */}}/* Can pass any popover props except children */content={/* Use blueprintjs components here to do the menu */<Menu><MenuItem/></Menu>}/><Toolbar.Item/></Toolbar>
The placement of the menu items with respect to the toolbar should have a sensible default depending if the toolbar is horizontal or vertical (use a context to know about the type of toolbar in the children).
See use case in NMRium: https://github.com/cheminfo/nmrium/blob/6618ec1f26eec0a2c22bda4a17aae6e5f218c0cc/src/component/toolbar/BasicToolBar.tsx#L231-L247
The text was updated successfully, but these errors were encountered: