Back to Website
Show / Hide Table of Contents

Interface IManipulationPermissionsConfig

A structure defining the manipulation permissions.

Package: IframeApi
Examples

You can prevent elements from moving horizontally and enable corner grips with the following config.

{
   "defaultItemsConfig": {
       "rectangle": {
           "manipulationPermissions": {
               "allowMoveHorizontal": false,
               "resizeGrips": {
                   "edge": false,
                   "corner": ["Proportional"]
               }
           }
       }
   }
}

Properties

allowDelete

Allows deleting elements. The default value is true.

Declaration
allowDelete?: boolean
Property Value
Type Description
boolean

allowDragAndDrop

Allows dragging the content of image placeholders when they have the <PH><MAMH_f><MAMV_f> markers. The default value is true.

Declaration
allowDragAndDrop?: boolean
Property Value
Type Description
boolean

allowMoveHorizontal

Allows moving elements horizontally. The default value is true.

Declaration
allowMoveHorizontal?: boolean
Property Value
Type Description
boolean

allowMoveVertical

Allows moving elements vertically. The default value is true.

Declaration
allowMoveVertical?: boolean
Property Value
Type Description
boolean

allowRotate

Allows rotating elements. The default value is true.

Declaration
allowRotate?: boolean
Property Value
Type Description
boolean

resizeGrips

Enables the corner and side grips to resize elements.

Declaration
resizeGrips?: IResizeGripsPermissions
Property Value
Type Description
IResizeGripsPermissions
Back to top Copyright © 2001–2022 Aurigma, Inc. All rights reserved.
Loading...