You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">ValidationError</span><spanclass="htmlTagDelimiter">></span>You must check me out!<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">ValidationError</span><spanclass="htmlTagDelimiter">></span>
6
+
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">ValidationNone</span><spanclass="htmlTagDelimiter">></span>Please enter a display name.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">ValidationNone</span><spanclass="htmlTagDelimiter">></span>
7
+
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">ValidationWarning</span><spanclass="htmlTagDelimiter">></span>Short display names are allowed, but longer names are easier to recognize.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">ValidationWarning</span><spanclass="htmlTagDelimiter">></span>
8
+
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">ValidationSuccess</span><spanclass="htmlTagDelimiter">></span>Display name looks good.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">ValidationSuccess</span><spanclass="htmlTagDelimiter">></span>
9
+
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">ValidationError</span><spanclass="htmlTagDelimiter">></span>Display name is required.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">ValidationError</span><spanclass="htmlTagDelimiter">></span>
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">None</span><spanclass="htmlTagDelimiter">></span>Please enter a username.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">None</span><spanclass="htmlTagDelimiter">></span>
19
+
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">Warning</span><spanclass="htmlTagDelimiter">></span>Short usernames are allowed, but longer usernames are easier to identify.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">Warning</span><spanclass="htmlTagDelimiter">></span>
<spanclass="htmlTagDelimiter"><</span><spanclass="htmlElementName">Error</span><spanclass="htmlTagDelimiter">></span>Username is required.<spanclass="htmlTagDelimiter"></</span><spanclass="htmlElementName">Error</span><spanclass="htmlTagDelimiter">></span>
Copy file name to clipboardExpand all lines: Documentation/Blazorise.Docs/Pages/Docs/Components/Validations/ValidationPage.razor
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,11 @@
50
50
<CodeTag>ValidationSuccess</Code> displays the success message.
51
51
</Paragraph>
52
52
</UnorderedListItem>
53
+
<UnorderedListItem>
54
+
<Paragraph>
55
+
<CodeTag>ValidationWarning</Code> displays a non-blocking warning message.
56
+
</Paragraph>
57
+
</UnorderedListItem>
53
58
<UnorderedListItem>
54
59
<Paragraph>
55
60
<CodeTag>ValidationError</Code> displays the error message.
@@ -60,6 +65,11 @@
60
65
<CodeTag>ValidationNone</Code> displays a message when nothing has happened.
61
66
</Paragraph>
62
67
</UnorderedListItem>
68
+
<UnorderedListItem>
69
+
<Paragraph>
70
+
<CodeTag>ValidationFeedback</Code> groups the <Code>None</Code>, <Code>Warning</Code>, <Code>Success</Code>, and <Code>Error</Code> fragments in one component.
71
+
</Paragraph>
72
+
</UnorderedListItem>
63
73
</UnorderedList>
64
74
</UnorderedListItem>
65
75
</UnorderedList>
@@ -110,12 +120,20 @@
110
120
</DocsPageSection>
111
121
112
122
<DocsPageSection>
113
-
<DocsPageSectionHeader>
114
-
The same structure applies to all <Code>Edit</Code> components (check, radio, select, etc.). Note that some components
115
-
have special rules when defining the validation structure. For example, for <Code>Check</Code> you must use the
116
-
<Code>ChildContent</Code> tag along with the <Code>Feedback</Code> tag. This is a limitation in Blazor and may be
117
-
addressed in the future.
123
+
<DocsPageSectionHeaderTitle="Warning and grouped feedback">
124
+
<Paragraph>
125
+
Use <CodeTag>ValidationWarning</Code> when a value is acceptable but should still show non-blocking guidance.
126
+
To keep all feedback fragments together, use <CodeTag>ValidationFeedback</Code> with <CodeTag>None</Code>,
127
+
<CodeTag>Warning</Code>, <CodeTag>Success</Code>, and <CodeTag>Error</Code> child fragments.
128
+
</Paragraph>
129
+
<Paragraph>
130
+
The same feedback structure applies to all <Code>Edit</Code> components (check, radio, select, etc.). Some components
131
+
have special rules when defining child content and feedback.
0 commit comments