Interface ITextPermissionsData
A structure defining permissions for text elements.
Package: @aurigma/design-atoms-interfaces
Examples
{
"defaultItemsConfig": {
"text": {
"textPermissions": {
"allowChangeText": false,
"allowChangeFontColor": false,
"allowChangeShadow": false,
"allowChangeStroke": false
}
}
}
}
Properties
allowChangeFont
Enables the **Font name** and **Font style** lists in the Top Toolbar. The default value is true
.
Declaration
allowChangeFont?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Font name** and **Font style** lists in the Top Toolbar. The default value is |
allowChangeFontColor
Enables the **Color picker** in the Top Toolbar for plain text. By default, the **Color picker** is enabled.
Declaration
allowChangeFontColor?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Color picker** in the Top Toolbar for plain text. By default, the **Color picker** is enabled. |
allowChangeFontSize
Enables the **Font size** box in the Top Toolbar for plain text. The default value is true
.
Declaration
allowChangeFontSize?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Font size** box in the Top Toolbar for plain text. The default value is |
allowChangeShadow
Enables the **Shadow** button in the Top Toolbar. By default, this button is enabled.
Declaration
allowChangeShadow?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Shadow** button in the Top Toolbar. By default, this button is enabled. |
allowChangeStroke
Enables the **Stroke** button in the Top Toolbar. By default, this button is enabled.
Declaration
allowChangeStroke?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Stroke** button in the Top Toolbar. By default, this button is enabled. |
allowChangeStrokeColor
Enables the **Stroke color** button in the Top Toolbar for plain text. By default, this button is enabled.
Declaration
allowChangeStrokeColor?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Stroke color** button in the Top Toolbar for plain text. By default, this button is enabled. |
allowChangeText
Allows for changing the content and enables the **Edit** button in the context menu. The default value is true
.
Declaration
allowChangeText?: boolean;
Property Value
Type | Description |
---|---|
boolean | Allows for changing the content and enables the **Edit** button in the context menu. The default value is |
allowChangeTextAlignment
Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default.
Declaration
allowChangeTextAlignment?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default. |
allowChangeTextBIU
Enables the **Faux bold**, **Faux italic**, and **Underlined** buttons in the Top Toolbar for plain text. These buttons are enabled by default.
Declaration
allowChangeTextBIU?: boolean;
Property Value
Type | Description |
---|---|
boolean | Enables the **Faux bold**, **Faux italic**, and **Underlined** buttons in the Top Toolbar for plain text. These buttons are enabled by default. |
allowTextFormatting
Declaration
allowTextFormatting?: boolean;
Property Value
Type | Description |
---|---|
boolean |