newTextInputStep constructs a textInputStep. placeholder is the default value shown/returned when value is empty (used for update mode pre-population).
(title, prompt, placeholder string, required bool, hint string)
| 23 | // newTextInputStep constructs a textInputStep. placeholder is the default |
| 24 | // value shown/returned when value is empty (used for update mode pre-population). |
| 25 | func newTextInputStep(title, prompt, placeholder string, required bool, hint string) textInputStep { |
| 26 | return textInputStep{ |
| 27 | title: title, |
| 28 | prompt: prompt, |
| 29 | placeholder: placeholder, |
| 30 | required: required, |
| 31 | hint: hint, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // update processes a key event and returns the action the wrapping model |
| 36 | // should take. Same contract as pickerStep.update. |
no outgoing calls