pub fn button(ui: &mut Ui<'_>, text: &str, payload: impl Into<Value>)Expand description
A push button showing text, keyed by it. A label that changes re-keys
the node — a new node, so it loses keyboard focus and a screen reader’s
cursor; declare such a button with button_with and a key of its own.
The pointer over it is the hand (CursorShape::Pointer): the core
implies no shape from an on_click, and the stock button is the one
place the hand is declared for you.