File

core/dynamic-forms/file/file.type.component.ts

Extends

FieldType

Implements

OnInit

Metadata

Index

Properties
Methods

Methods

droppedEvent
droppedEvent(files: DroppedFile[])
Parameters :
Name Type Optional
files DroppedFile[] No
Returns : void
ngOnInit
ngOnInit()
Returns : void

Properties

dropArea
Type : DropAreaComponent
Decorators :
@ViewChild('dropArea', {static: true})
Readonly dropAreaInputs
Type : string[]
Default value : [ 'title', 'message', 'icon', 'loadingMessage', 'alwaysShow', 'clickToOpen', 'loading', 'progress', 'maxAllowedFiles', 'files', 'accept', 'maxFileSizeInMegaBytes', 'forceHideList' ]
<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>

results matching ""

    No results matching ""