UNPKG

@aurigma/design-atoms-interfaces

Version:

35 lines (34 loc) 1.27 kB
/** * A structure containing the configuration of the Floating item toolbar. * @example To enable the **Floating item toolbar** on the canvas, set the `floatingItemToolbarEnabled` property to `true`. For details, see the {@link https://customerscanvas.com/dev/editors/iframe-api/editor-configuration/ui-overview.html|UI overview} topic. * ```json * { * "defaultItemsConfig": { * "image": { * "itemPermissions": { * "allowZOrderChange": false, * "itemToolbarPermissions": { * "showEditButton": true, * "showDeleteButton": false, * "showSelectButton": false * } * } * } * }, * "canvas": { * "floatingItemToolbarEnabled": true * } * } * ``` * @public */ export interface IItemToolbarPermissionsData { /** Enables the **Delete** button. The default value is `true`. */ showDeleteButton?: boolean; /** Enables the **Edit** button. The default value is `true`. */ showEditButton?: boolean; /** Enables the **Select Image** button. The default value is `true`. */ showSelectButton?: boolean; /** Enables the **Handle** button. The default value is `true`. */ showHandleButton?: boolean; }