Static zng::toggle::cmd::TOGGLE_CMD

source ·
pub static TOGGLE_CMD: Command
Expand description

Represents the toggle action.

§Handlers

  • checked: The property toggles for no param and or sets to the bool param or to the Option<bool> param coercing None to false.

  • checked_opt: The property cycles or toggles depending on tristate for no params, otherwise it sets the bool or Option<bool> param.

  • value: The property toggles select/unselect the value for no params, otherwise it selects the value for param true or Some(true) and deselects the value for param false or None::<bool>. Note that you can also use the SELECT_CMD for value.