File

projects/mobile/components/device/camera/src/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
Type : boolean
Default value : false

Allow simple editing on image after capturing.

capturetype
Type : string
Default value : 'IMAGE'

This specifies whether image or video is to be captured.

Allowed Values: IMAGE, VIDEO

IMAGE: To capture a picture.

VIDEO: To record a video.

class
Type : string

Class of the widget.

correctorientation
Type : boolean
Default value : false

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

datavalue
Type : string

This property defines the value of the camera widget.

Bindable: true

horizontalalign
Type : string

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.

iconclass
Type : string
Default value : 'wi wi-photo-camera'

This property specifies CSS class of the icon.

Bindable: true

iconsize
Type : string
Default value : '2em'

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

imageencodingtype
Type : string
Default value : 'JPEG'

Choose the returned image file's encoding.

Allowed Values: JPEG, PNG

JPEG: Encoding of type ".jpeg"

PNG: Encoding of type ".png"

imagequality
Type : number
Default value : 80

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

imagetargetheight
Type : number

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

imagetargetwidth
Type : number

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

name
Type : string

Name of the camera widget.

savetogallery
Type : boolean
Default value : false

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

show
Type : boolean
Default value : true

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

Bindable: true

result-matching ""

    No results matching ""