|
1 | 1 | <h3 id="bind-cases">Bind cases</h3>
|
2 | 2 |
|
| 3 | +@* There are a mix of cases here using bind and bind-value for coverage *@ |
| 4 | + |
3 | 5 | <h2>Textbox</h2>
|
4 | 6 | <p>
|
5 | 7 | Initially blank:
|
|
32 | 34 | </p>
|
33 | 35 | <p>
|
34 | 36 | Nullable int:
|
35 |
| - <input id="textbox-nullable-int" @bind="textboxNullableIntValue" type="number" /> |
| 37 | + <input id="textbox-nullable-int" @bind-value="textboxNullableIntValue" type="number" /> |
36 | 38 | <span id="textbox-nullable-int-value">@textboxNullableIntValue</span>
|
37 | 39 | <input id="textbox-nullable-int-mirror" @bind="textboxNullableIntValue" readonly />
|
38 | 40 | </p>
|
|
50 | 52 | </p>
|
51 | 53 | <p>
|
52 | 54 | float:
|
53 |
| - <input id="textbox-float" @bind="textboxFloatValue" type="number" /> |
| 55 | + <input id="textbox-float" @bind-value="textboxFloatValue" type="number" /> |
54 | 56 | <span id="textbox-float-value">@textboxFloatValue</span>
|
55 | 57 | <input id="textbox-float-mirror" @bind="textboxFloatValue" readonly />
|
56 | 58 | </p>
|
|
74 | 76 | </p>
|
75 | 77 | <p>
|
76 | 78 | decimal:
|
77 |
| - <input id="textbox-decimal" @bind="textboxDecimalValue" type="number" /> |
| 79 | + <input id="textbox-decimal" @bind-value="textboxDecimalValue" type="number" /> |
78 | 80 | <span id="textbox-decimal-value">@textboxDecimalValue</span>
|
79 | 81 | <input id="textbox-decimal-mirror" @bind="textboxDecimalValue" readonly />
|
80 | 82 | </p>
|
|
119 | 121 | </p>
|
120 | 122 | <p>
|
121 | 123 | Nullable DateTime:
|
122 |
| - <input id="textbox-nullable-datetime" @bind="textboxNullableDateTimeValue" type="text" /> |
| 124 | + <input id="textbox-nullable-datetime" @bind-value="textboxNullableDateTimeValue" type="text" /> |
123 | 125 | <span id="textbox-nullable-datetime-value">@textboxNullableDateTimeValue</span>
|
124 | 126 | <input id="textbox-nullable-datetime-mirror" @bind="textboxNullableDateTimeValue" readonly />
|
125 | 127 | </p>
|
|
149 | 151 | </p>
|
150 | 152 | <p>
|
151 | 153 | DateTime (format):
|
152 |
| - <input id="textbox-datetime-format" @bind="textboxDateTimeFormatValue" type="text" @bind:format="MM-dd" /> |
| 154 | + <input id="textbox-datetime-format" @bind-value="textboxDateTimeFormatValue" type="text" @bind-value:format="MM-dd" /> |
153 | 155 | <span id="textbox-datetime-format-value">@textboxDateTimeFormatValue</span>
|
154 | 156 | <input id="textbox-datetime-format-mirror" @bind="textboxDateTimeFormatValue" readonly />
|
155 | 157 | </p>
|
|
161 | 163 | </p>
|
162 | 164 | <p>
|
163 | 165 | DateTime (format / invalid value):
|
164 |
| - <input id="textbox-datetime-format-invalid" @bind="textboxDateTimeFormatInvalidValue" type="text" @bind:format="MM-dd" /> |
| 166 | + <input id="textbox-datetime-format-invalid" @bind-value="textboxDateTimeFormatInvalidValue" type="text" @bind-value:format="MM-dd" /> |
165 | 167 | <span id="textbox-datetime-format-invalid-value">@textboxDateTimeFormatInvalidValue</span>
|
166 | 168 | <input id="textbox-datetime-format-invalid-mirror" @bind="textboxDateTimeFormatInvalidValue" readonly />
|
167 | 169 | </p>
|
|
0 commit comments