This repository was archived by the owner on Dec 14, 2018. It is now read-only.
File tree 2 files changed +4
-4
lines changed
samples/TagHelperSample.Web/Views/Home 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
<div class =" form-horizontal" >
11
11
@* validation summary tag helper will target just <div/> elements and append the list of errors *@
12
12
@* - i.e. this helper, like <select/> helper has ContentBehavior.Append *@
13
- @* validation-model-errors-only="true" implies validation-summary="true" *@
14
- @* helper does nothing if model is valid and (client-side validation is disabled or validation-model-errors-only="true") *@
13
+ @* helper does nothing if model is valid and (client-side validation is disabled or validation-summary="ModelOnly") *@
15
14
@* don't need a bound attribute to match Html.ValidationSummary()'s headerTag parameter; users wrap message as they wish *@
16
15
@* initially at least, will not remove the <div/> if list isn't generated *@
17
16
@* - should helper remove the <div/> if list isn't generated? *@
18
17
@* - (Html.ValidationSummary returns empty string despite non-empty message parameter) *@
19
- <div validation-summary =" true" validation-model-errors-only =" true" >
18
+ @* Acceptable values are: "None", "ModelOnly" and "All" *@
19
+ <div validation-summary =" ModelOnly" >
20
20
<span style =" color :red " >This is my message</span >
21
21
</div >
22
22
Original file line number Diff line number Diff line change 6
6
7
7
<form >
8
8
<div class =" form-horizontal" >
9
- <div validation-summary =" true " />
9
+ <div validation-summary =" All " />
10
10
<input type =" hidden" for =" Id" />
11
11
12
12
<div class =" form-group" >
You can’t perform that action at this time.
0 commit comments