-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6136791
commit 1eac82f
Showing
12 changed files
with
50 additions
and
43 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
libs/design/input/examples/src/input-error/input-error.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<daff-form-field> | ||
<input daff-input type="text" placeholder="Email" name="email" [formControl]="control" id="error-input"/> | ||
<label for="error-input">Label</label> | ||
<div class="error">Error message goes here.</div> | ||
@if (control.errors?.required) { | ||
<daff-error-message>Email is a required field.</daff-error-message> | ||
} | ||
@if (control.errors?.email) { | ||
<daff-error-message>Email is not valid.</daff-error-message> | ||
} | ||
</daff-form-field> | ||
<p>Value: {{ control.value }} </p> |
4 changes: 2 additions & 2 deletions
4
libs/design/input/examples/src/input-with-form-field/input-with-form-field.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<daff-form-field> | ||
<!-- <input daff-input type="text" placeholder="Email" name="email" [formControl]="control" id="input" /> --> | ||
<input daff-input type="text" name="email" [formControl]="control" id="input"/> | ||
<!-- <input daff-input type="text" placeholder="Email" name="email" id="input" /> --> | ||
<input daff-input type="text" name="email" id="input"/> | ||
<label for="input">Label</label> | ||
</daff-form-field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,8 @@ | |
box-shadow: none; | ||
outline: none; | ||
} | ||
|
||
&:disabled { | ||
cursor: not-allowed; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters