core/dynamic-forms/file/file.type.component.ts
FieldType
OnInit
changeDetection | ChangeDetectionStrategy.OnPush |
selector | c8y-field-file |
templateUrl | ./file.type.component.html |
Properties |
|
Methods |
droppedEvent | ||||||
droppedEvent(files: DroppedFile[])
|
||||||
Parameters :
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
dropArea |
Type : DropAreaComponent
|
Decorators :
@ViewChild('dropArea', {static: true})
|
<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>