pub fn toolbar_popover<V: View>(
id: &str,
label: &str,
symbol: &str,
content: impl Fn() -> V + 'static,
) -> ToolbarItemExpand description
A toolbar button that shows content in a popover pointing at the
button, as Safari’s and Mail’s toolbar popovers do; a second press, a
click outside or Escape closes it. The content is made each time it
opens. .disabled(..) and .optional() work as on toolbar_button.
let item = toolbar_popover("info", "Info", "info.circle", || text("12 rows").padding(12.0));