core/drop-area/drop-area.component.ts
Properties |
Methods |
readAsArrayBuffer |
readAsArrayBuffer()
|
Returns :
any
|
readAsBinaryString |
readAsBinaryString()
|
Returns :
any
|
readAsDataURL |
readAsDataURL()
|
Returns :
any
|
readAsJson |
readAsJson()
|
Returns :
any
|
readAsText |
readAsText()
|
Returns :
any
|
file |
file:
|
Type : File
|
A drop-zone which is a file selector allowing users to select file(s) from their file system, either natively or by drag and drop. Allows to select a binary for upload, or to specify uri to external resource. Component provides drop area functionality allowing you to just drop files within specified area. Attributes:
<div>
<c8y-drop-area
class="drop-area-sm"
(dropped)="onFileDropped($event)"
[title]="'Drop file or click to browse'"
[maxAllowedFiles]="maxAllowedFiles"
[files]="droppedFiles">
</c8y-drop-area>
</div>
<c8y-drop-area>
<h4>Put file here, it's a drop area</h4>
<c8y-drop-area>