-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added inout property to control the visibility of go-form-error.
Implemented in all controls with go-form-error.
- Loading branch information
CORP\Sudheep.Divakar
committed
Sep 20, 2023
1 parent
2bcf768
commit 1e8a818
Showing
19 changed files
with
723 additions
and
494 deletions.
There are no files selected for viewing
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
33 changes: 21 additions & 12 deletions
33
projects/go-lib/src/lib/components/go-checkbox/go-checkbox.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,19 +1,28 @@ | ||
<div> | ||
<label [for]="_id" | ||
class="go-form__label go-form__label--inline go-form__label--checkbox-container" | ||
[ngClass]="{'go-form__label--dark': theme === 'dark'}"> | ||
<label | ||
[for]="_id" | ||
class="go-form__label go-form__label--inline go-form__label--checkbox-container" | ||
[ngClass]="{ 'go-form__label--dark': theme === 'dark' }" | ||
> | ||
{{ label }} | ||
<go-required-text [control]="control"></go-required-text> | ||
<input [id]="_id" | ||
class="go-form__checkbox go-form__checkbox--hidden" | ||
[ngClass]="inputClasses" | ||
type="checkbox" | ||
[formControl]="control" | ||
#hiddenInputRef> | ||
<input | ||
[id]="_id" | ||
class="go-form__checkbox go-form__checkbox--hidden" | ||
[ngClass]="inputClasses" | ||
type="checkbox" | ||
[formControl]="control" | ||
#hiddenInputRef | ||
/> | ||
<span class="go-form__custom-checkbox"></span> | ||
</label> | ||
|
||
<go-hint *ngFor="let hint of hints" [message]="hint" [theme]="theme"></go-hint> | ||
|
||
<go-form-errors [control]="control"></go-form-errors> | ||
<go-hint | ||
*ngFor="let hint of hints" | ||
[message]="hint" | ||
[theme]="theme" | ||
></go-hint> | ||
<div *ngIf="!hideFieldError"> | ||
<go-form-errors [control]="control"></go-form-errors> | ||
</div> | ||
</div> |
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
Oops, something went wrong.