Commit 926812a 1 parent e55f9b0 commit 926812a Copy full SHA for 926812a
File tree 1 file changed +2
-4
lines changed
demo_markdown/docs/input_number
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,6 @@ let parser = Callback::<String, f64>::new(move |v: String| {
83
83
view! {
84
84
<InputNumber value parser formatter step = 1.0 / >
85
85
<p >" Underlying value: " { value }</ p >
86
- <InputNumber value = value_2 parser formatter step = 1.0 / >
87
- <p >" Underlying value_2: " { value_2 }</ p >
88
86
}
89
87
```
90
88
### InputNumber Props
@@ -100,8 +98,8 @@ view! {
100
98
| disabled | ` MaybeSignal<bool> ` | ` false ` | Whether the input is disabled. |
101
99
| invalid | ` MaybeSignal<bool> ` | ` false ` | Whether the input is invalid. |
102
100
| attr: | ` Vec<(&'static str, Attribute)> ` | ` Default::default() ` | The dom attrs of the input element inside the component. |
103
- | parser | ` OptionalProp<Callback<String, String >> ` | ` Default::default() ` | Modifies the user input before assigning it to the value |
104
- | formatter | ` OptionalProp<Callback<String , String>> ` | ` Default::default() ` | Formats the value to be shown to the user |
101
+ | parser | ` OptionalProp<Callback<String, T >> ` | ` Default::default() ` | Modifies the user input before assigning it to the value |
102
+ | formatter | ` OptionalProp<Callback<T , String>> ` | ` Default::default() ` | Formats the value to be shown to the user |
105
103
106
104
#### T impl
107
105
You can’t perform that action at this time.
0 commit comments