EvanFileSelectComponent

Source file-select

file selector component for HTML 5 &IOS & Anroid

Inputs

  1. label - string: this component is displayed like an ionic input, defines property or hides it
  2. buttonText - string: optional button text that should be displayed for the add button
  3. ngModel - string: files that should be uploaded
  4. disabled - string: disable file select or not
  5. accept - string: input type=”file” accept attribute
  6. downloadable - string: enable download of files
  7. minFiles - string: minimum amount of files that must be uploaded
  8. maxFiles - string: maximum amount of files that can be uploaded
  9. multiple - string: are multiple files allowed?

Outputs

  1. onChange - string: Event emitter to tell using component, that something has changed

Example

  • html
<evan-file-select name="attachments"
  *ngIf="offer.payload.attachments"
  [(ngModel)]="offer.payload.attachments"
  (onChange)="ref.detectChanges()"
  disabled="true"
  downloadable="true">
</evan-file-select>