core/dynamic-forms/file/file.type.component.ts
FieldType
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | c8y-field-file |
| standalone | true |
| imports |
NgIf
PopoverModule
C8yTranslatePipe
HumanizePipe
|
| templateUrl | ./file.type.component.html |
NgIf
PopoverModule
DropAreaComponent
FormsModule
ReactiveFormsModule
C8yTranslatePipe
HumanizePipe
FieldType
OnInit
<div
class="form-group"
[attr.aria-labelledby]="id + '-fieldset'"
role="group"
>
<label
id="{{ id + '-fieldset' }}"
*ngIf="to.label || to.description"
>
{{ to.label | humanize }}
<button
class="btn-help btn-help--sm"
[attr.aria-label]="'Help' | translate"
[popover]="to.description"
placement="right"
triggers="focus"
type="button"
*ngIf="to.description"
></button>
</label>
<c8y-drop-area
class="drop-area-sm"
#dropArea
[formControl]="formControl"
(dropped)="droppedEvent($event)"
></c8y-drop-area>
</div>