Skip to main content

textfield

Function textfield 

Source
pub fn textfield(placeholder: &str, value: &str) -> View
Expand description

Create a TextField showing a fixed string, which the user cannot edit.

The string becomes a Binding.constant, so keystrokes have nowhere to go and the field ignores them. textfield_bound is the editable one.