`validate_on_key` is a function that can be supplied by the library user to show the input in red if the it doesn't pass some validation. It works for the input, int, float and password prompts. Implements #5.
28 lines
1.6 KiB
Plaintext
28 lines
1.6 KiB
Plaintext
---
|
||
source: tests/helpers/mod.rs
|
||
expression: self.backend
|
||
|
||
---
|
||
┌──────────────────────────────────────────────────┐
|
||
│[38;5;10m? [1m[39mmessage[22m [38;5;8m›[39m [38;5;1m2-[38;5;0m[48;5;7m [39m[49m │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
│ │
|
||
└──────────────────────────────────────────────────┘
|