pub enum Value {
Press,
Remove,
Bool(bool),
Number(f64),
Text(String),
Choice(String),
RemoveAt(usize),
Clear,
Elements(Vec<PickedElement>),
Table(TableEdit),
}Expand description
What a field was set to — or that it was pressed: in the dialog, by a pick in the viewport, or by dragging a handle.
Variants§
Press
A button, a list item or a reference field was pressed.
Remove
A list item’s remove button was pressed.
Bool(bool)
Number(f64)
Text(String)
Text typed: a value given as a formula, a colour.
Choice(String)
An action, or a select’s option, by its value.
RemoveAt(usize)
The element at this index was taken out of a reference field.
Clear
Everything was taken out of a reference field.
Elements(Vec<PickedElement>)
What a reference field holds now: all an operation is ever sent for
one (see super::Reference).
Table(TableEdit)
Something done to a table field (see super::Table).
Implementations§
Source§impl Value
impl Value
Sourcepub fn numeric_input(&self) -> Option<NumericInput>
pub fn numeric_input(&self) -> Option<NumericInput>
The NumericInput a number field set to it gives: a number slid
or dragged plain, text typed plain if it is a number and a formula
otherwise. None for anything else, and for empty text. A formula
that does not evaluate is kept, as typed: the step then fails naming
it, and the field shows the text to correct.