Skip to main content

Press

Function Press 

Source
pub fn Press(_: PressProps) -> Element
Expand description

One control that raises one command.

It raises the command’s name: what that comes to is resolved by the call it reaches, against the session as it then stands. says is the control’s own sentence; the keys that do the same thing are read off the binding table and appended, so a tooltip cannot promise a key nothing binds.

raises is for the one control whose press means something other than what it stands for — the armed rail cell, which is still labelled the tool it holds while a press of it returns to Select.

§Props

For details, see the props struct definition.

  • shell : Shell
  • id : CommandId
  • raises : Option<CommandId>
  • says : String
  • icon : Option<Icon>
  • class : String
  • children : Element

    Words drawn beside the face, for a control that carries its name.