File

projects/mobile/components/src/widgets/camera/camera.component.doc.ts

Description

The wmCamera component defines the camera widget.

Index

Methods
Inputs

Methods

onSuccess
onSuccess($event: MouseEvent, widget: any, localFilePath: string, localFile: any)

This event handler is called whenever a success event is triggered.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the widget

localFilePath string No

URL of the file

localFile any No

File object

Returns : void

Inputs

allowedit

Allow simple editing on image after capturing.

Type : boolean

Default value : false

capturetype

This specifies whether image or video is to be captured.

Allowed Values: IMAGE, VIDEO

IMAGE: To capture a picture.

VIDEO: To record a video.

Type : string

Default value : 'IMAGE'

class

Class of the widget.

Type : string

correctorientation

Rotate the image to correct for the orientation of the device during capture.

Type : boolean

Default value : false

datavalue

This property defines the value of the camera widget.

Bindable: true

Type : string

horizontalalign

This property specifies how the elements should be aligned horizontally.

Allowed Values: left, center, right

left: Aligns an element to the left.

center: Aligns an element to the center.

right: Aligns an element to the right.

Type : string

iconclass

This property specifies CSS class of the icon.

Bindable: true

Type : string

Default value : 'wi wi-photo-camera'

iconsize

This property specifies size of the icon. Value has to be specified along with the units (em or px).

Type : string

Default value : '2em'

imageencodingtype

Choose the returned image file's encoding.

Allowed Values: JPEG, PNG

JPEG: Encoding of type ".jpeg"

PNG: Encoding of type ".png"

Type : string

Default value : 'JPEG'

imagequality

Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression.

Type : number

Default value : 80

imagetargetheight

This property specifies the height in px to resize the image.

Type : number

imagetargetwidth

This property specifies the width in px to resize the image.

Type : number

name

Name of the camera widget.

Type : string

savetogallery

Save the image to the photo album on the device after capture.

Type : boolean

Default value : false

show

This property will be used to show/hide the camera widget.

Bindable: true

Type : boolean

Default value : true

result-matching ""

    No results matching ""