Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix(form-group): Add tooltipPlacement input for change position of to…
Browse files Browse the repository at this point in the history
…oltip
  • Loading branch information
EndyKaufman committed Apr 27, 2018
1 parent 3803ca1 commit 6558e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="form-group" [ngClass]="{'has-error': (errors | async)[0]}" [containerClass]="(errors | async)[0]?'error-tooltip':'success-tooltip'"
[tooltip]="(errors | async)[0] | translate" placement="bottom">
[tooltip]="(errors | async)[0] | translate" [placement]="tooltipPlacement?tooltipPlacement:'bottom'">
<label class="control-label" [attr.for]="name" *ngIf="title">{{title | translate}}</label>
<ng-container *ngTemplateOutlet="contentWrapper"></ng-container>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export class FormGroupComponent implements AfterViewInit {

@Input()
checkIsDirty?: boolean;
@Input()
tooltipPlacement?: string;

get errors(): Observable<IShortValidationErrors | string[]> | Observable<any[]> {
if (this.form && (this.checkIsDirty !== true || this.form.dirty)) {
Expand Down

0 comments on commit 6558e0f

Please # to comment.