跳到主要内容

PictureFormPr

Picture form properties.

Type

Enumeration

Values

Example

This example creates a picture form with the common and specific picture form properties.

// How to set the properties to the ApiPictureForm object.

// Specify the picture form properties like placeholder, tip text, position, key, etc.

let pictureFormPr = {
"key": "Personal information",
"tip": "Upload your photo",
"required": true,
"placeholder": "Photo",
"scaleFlag": "tooBig",
"lockAspectRatio": true,
"respectBorders": false,
"shiftX": 50,
"shiftY": 50
};
let pictureForm = Api.CreatePictureForm(pictureFormPr);