FoFileUploadComponent class
A component which lets the user select or drop a single file from their local drive. When the file has been processed, a fileChange event is fired containing the File object. The host app can optionally set uploading to true to display a load indicator
- Annotations
-
- @Component(selector: 'fo-file-upload', templateUrl: 'fo_file_upload_component.html', styleUrls: ['fo_file_upload_component.css'], directives: [NgIf, FoIconComponent, FoLabelComponent, FoLoadIndicatorComponent], pipes: [CapitalizePipe], changeDetection: ChangeDetectionStrategy.OnPush)
Constructors
Properties
- accept ↔ String
-
getter/setter pair
- disabled ↔ bool
-
getter/setter pair
- file ↔ File?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ String
-
getter/setter pair
- materialIcon ↔ bool
-
getter/setter pair
-
onFileChangedOutput
→ Stream<
File> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uploading ↔ bool
-
getter/setter pair
- uploadingLabel ↔ String
-
getter/setter pair
Methods
-
clearSelection(
) → void -
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDrop(
MouseEvent event) → void -
onFileChange(
Event event) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited