Skip to content

Commit 926812a

Browse files
committed
Fixed InputNumber's docs
1 parent e55f9b0 commit 926812a

File tree

1 file changed

+2
-4
lines changed
  • demo_markdown/docs/input_number

1 file changed

+2
-4
lines changed

demo_markdown/docs/input_number/mod.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ let parser = Callback::<String, f64>::new(move |v: String| {
8383
view! {
8484
<InputNumber value parser formatter step=1.0 />
8585
<p>"Underlying value: "{ value }</p>
86-
<InputNumber value=value_2 parser formatter step=1.0 />
87-
<p>"Underlying value_2: "{ value_2 }</p>
8886
}
8987
```
9088
### InputNumber Props
@@ -100,8 +98,8 @@ view! {
10098
| disabled | `MaybeSignal<bool>` | `false` | Whether the input is disabled. |
10199
| invalid | `MaybeSignal<bool>` | `false` | Whether the input is invalid. |
102100
| 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 |
105103

106104
#### T impl
107105

0 commit comments

Comments
 (0)