core/forms/messages.component.ts
selector | c8y-messages |
standalone | true |
imports |
NgIf
NgFor
C8yTranslatePipe
|
templateUrl | ./messages.component.html |
Properties |
Methods |
Inputs |
constructor(translateService: TranslateService)
|
||||||
Parameters :
|
defaults |
Type : object
|
Default value : ValidationPattern.messages
|
helpMessage |
Type : string
|
Default value : ''
|
show |
Type : object
|
Default value : {}
|
changeVisibility | ||||||
changeVisibility(show: object)
|
||||||
Parameters :
Returns :
void
|
ngAfterContentInit |
ngAfterContentInit()
|
Returns :
void
|
ngOnChanges |
ngOnChanges()
|
Returns :
void
|
customMessages |
Type : QueryList<MessageDirective>
|
Decorators :
@ContentChildren(MessageDirective)
|
messageMap |
Type : any
|
Default value : {}
|
messages |
Type : []
|
Default value : []
|
<small class="form-control-feedback-message">
<div
class="d-block"
*ngFor="let msg of messages"
>
{{ msg | translate }}
</div>
<div
class="help-block"
*ngIf="!messages.length && helpMessage"
>
{{ helpMessage | translate }}
</div>
<ng-content></ng-content>
</small>