]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/formly-input-wrapper/formly-input-wrapper.component.ts
baed44a6886f50205a6924ba863e1b987532fc0c
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / forms / crud-form / formly-input-wrapper / formly-input-wrapper.component.ts
1 import { Component } from '@angular/core';
2 import { FieldWrapper } from '@ngx-formly/core';
3 import { getFieldState } from '../helpers';
4
5 @Component({
6 selector: 'cd-formly-input-wrapper',
7 templateUrl: './formly-input-wrapper.component.html',
8 styleUrls: ['./formly-input-wrapper.component.scss']
9 })
10 export class FormlyInputWrapperComponent extends FieldWrapper {
11 get helper(): string {
12 const fieldState = getFieldState(this.field);
13 return fieldState?.help || '';
14 }
15 }