FoImageFileComponent class

A component that loads an image file and converts it to base64 data. When an image has been loaded, it's immediately displayed to the user and 'sourceChanged' event fires containing the base64 data

Annotations
  • @Component(selector: 'fo-image-file', templateUrl: 'fo_image_file_component.html', styleUrls: ['fo_image_file_component.css'], directives: [coreDirectives, FoButtonComponent, FoIconComponent, FoLabelComponent], changeDetection: ChangeDetectionStrategy.OnPush)

Constructors

FoImageFileComponent(ChangeDetectorRef _changeDetectorRef)

Properties

accept String
getter/setter pair
addIcon String
getter/setter pair
alt String
getter/setter pair
backgroundImage String?
no setter
brightness int
getter/setter pair
brightnessFilter String
no setter
disabled bool
getter/setter pair
fileInput InputElement?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
invalidFile bool
getter/setter pair
label String
getter/setter pair
materialIcons bool
getter/setter pair
maxByteSize int
Maximum bytesize in pixels of the output image
getter/setter pair
maxHeight int
Maximum width in pixels of the output image
getter/setter pair
maxWidth int
Maximum width in pixels of the output image
getter/setter pair
msgInvalidFile String
final
onSourceChange Stream<String>
no setter
placeholder String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Image source. Can be either a base64 encoded string, or an url
getter/setter pair
styles Map<String, String>
no setter

Methods

clearSource() → 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
onDelete(Event e) → void
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