Interface: ITopToolbarConfig
A structure containing the configuration of the Top toolbar.
Example
let configuration = {
widgets: {
TopToolbar: {
multiRowModeEnabled: true,
textShadowButtonEnabled: true,
textShadow: {
angle: { max: 70, min: 20, step: 5 },
distance: { max: 5, min: 0, step: 0.1 },
size: { max: 2, min: 0, step: 0.1 },
},
textStrokeButtonEnabled: false,
textStroke: { max: 1, min: 0, step: 0.1 },
},
},
};
Properties
displayCaptionInButtons?
optionaldisplayCaptionInButtons?:boolean
Displays button captions in the Top Toolbar. The default value is false.
alignButtonsEnabled?
optionalalignButtonsEnabled?:boolean
Displays the vertical alignment buttons (Top, Center, Bottom). The default value is true.
displayAlignButtonsAsDropdown?
optionaldisplayAlignButtonsAsDropdown?:boolean
Displays the alignment buttons as a drop-down list. The default value is true.
historyButtonsEnabled?
optionalhistoryButtonsEnabled?:boolean
Displays the Undo and Redo buttons. The default value is true.
deleteButtonEnabled?
optionaldeleteButtonEnabled?:boolean
Displays the Delete button. The default value is false.
revertButtonEnabled?
optionalrevertButtonEnabled?:boolean
Displays the Revert button. The default value is true.
zOrder?
optionalzOrder?:IZOrderConfig
Displays buttons for changing the z-Order of design elements. By default, the Top toolbar displays the z-Order buttons.
displayZOrderButtonsAsDropdown?
optionaldisplayZOrderButtonsAsDropdown?:boolean
Displays the z-order buttons as a drop-down list. The default value is true.
cloneButtonEnabled?
optionalcloneButtonEnabled?:boolean
Displays the Clone object button. The default value is false.
editTextButtonEnabled
editTextButtonEnabled:
boolean
Displays the Edit button for text elements. The default value is false.
textVAlignmentButtonsEnabled?
optionaltextVAlignmentButtonsEnabled?:boolean
Displays the text vertical alignment buttons. The default value is true.
textAllowChangeColumnCount?
optionaltextAllowChangeColumnCount?:boolean
Displays the Columns box for rich formatted text. The default value is true.
textAlignmentButtonsEnabled?
optionaltextAlignmentButtonsEnabled?:boolean
Displays the text alignment buttons. The default value is true.
textEmphasisButtonsEnabled?
optionaltextEmphasisButtonsEnabled?:boolean
Displays the faux text style buttons (bold, italic, and underlined). The default value is true.
textFontFamilyButtonEnabled?
optionaltextFontFamilyButtonEnabled?:boolean
Displays the font list. The default value is true.
textFontStyleButtonEnabled?
optionaltextFontStyleButtonEnabled?:boolean
Displays the font style list. The default value is true.
textFontSizeButtonEnabled?
optionaltextFontSizeButtonEnabled?:boolean
Displays the font size spinner. The default value is true.
textFontColorButtonEnabled?
optionaltextFontColorButtonEnabled?:boolean
Displays the text color picker. The default value is true.
textBendButtonEnabled?
optionaltextBendButtonEnabled?:boolean
Displays the Arched text bend button to configure the arch bend. The default value is true.
textParagraphButtonEnabled?
optionaltextParagraphButtonEnabled?:boolean
Displays the Paragraph button to configure paragraph indents. The default value is true.
textListButtonsEnabled?
optionaltextListButtonsEnabled?:boolean
Displays the group of buttons to create and manipulate text lists. By default, the Top toolbar displays the list buttons for text elements.
fillColorButtonEnabled?
optionalfillColorButtonEnabled?:boolean
Displays the Select fill color button. The default value is true.
textFillColorButtonEnabled?
optionaltextFillColorButtonEnabled?:boolean
Displays the Select text fill color button. The default value is false.
closeFontMenuOnClickEnabled?
optionalcloseFontMenuOnClickEnabled?:boolean
If true, the Select font drop-down list closes after a user selects a font; otherwise, it closes only when a user clicks anywhere outside the list. The default value is true.
opacitySliderEnabled?
optionalopacitySliderEnabled?:boolean
If true, provides the ability to change layer opacity via the Select opacity slider in the Top toolbar. The default value is true.
textLeadingButtonEnabled?
optionaltextLeadingButtonEnabled?:boolean
Displays the Leading list for text. The default value is true.
textTrackingButtonEnabled?
optionaltextTrackingButtonEnabled?:boolean
Displays the Tracking list for text. The default value is true.
multiRowModeEnabled?
optionalmultiRowModeEnabled?:boolean
Displays the Top toolbar in the multi row mode to fit all the buttons for a screen. The default value is false.
borderColorButtonEnabled?
optionalborderColorButtonEnabled?:boolean
Displays the Select border color button in the Top toolbar. The default value is true.
overlayColorButtonEnabled?
optionaloverlayColorButtonEnabled?:boolean
Displays the Select overlay color button in the Top toolbar. The default value is true.
barcodeColorButtonEnabled?
optionalbarcodeColorButtonEnabled?:boolean
Displays the Select barcode color button. The default value is true.
borderWidthButtonEnabled?
optionalborderWidthButtonEnabled?:boolean
Displays the Select border width button in the Top toolbar. The default value is true.
imageEditButtonEnabled?
optionalimageEditButtonEnabled?:boolean
Displays the Edit button for images in the Top toolbar. The default value is true.
imageSelectButtonEnabled?
optionalimageSelectButtonEnabled?:boolean
Displays the Select image button for images. The default value is true.
placeholderEditButtonEnabled?
optionalplaceholderEditButtonEnabled?:boolean
Displays the Edit button for image placeholders in the Top toolbar. The default value is true.
placeholderSelectButtonEnabled?
optionalplaceholderSelectButtonEnabled?:boolean
Displays the Select image button for image placeholders. The default value is true.
placeholderScaleButtonEnabled?
optionalplaceholderScaleButtonEnabled?:boolean
Displays the Select placeholder content scale button for image placeholders. The default value is true.
placeholderResetContentButtonEnabled?
optionalplaceholderResetContentButtonEnabled?:boolean
Displays the Reset placeholder content button for image placeholders. The default value is true.
placeholderRotateContentButtonsEnabled?
optionalplaceholderRotateContentButtonsEnabled?:boolean
Displays the Rotate content buttons for image placeholders to rotate the content to 90, 180, and 270 degrees. The default value is true.
changeBarcodeTypeButtonEnabled?
optionalchangeBarcodeTypeButtonEnabled?:boolean
Displays the Change barcode type drop-down list for barcode placeholders. The default value is true.
fontPreviewSize?
optionalfontPreviewSize?:number
The font size used to display font names in the Select font drop-down list. The default value is 17.
fontSize?
optionalfontSize?:IRangeParams
Specifies parameters of the Font size spinner.
textShadowButtonEnabled?
optionaltextShadowButtonEnabled?:boolean
Displays the Shadow button. The default value is true.
textShadow?
optionaltextShadow?:ITextShadowParam
An angle in degrees, an indent in points, and a blur value in pixels of the text shadow. The default values are calculated based on the text font size.
textStrokeButtonEnabled?
optionaltextStrokeButtonEnabled?:boolean
Displays the Stroke button. The default value is true.
textStroke?
optionaltextStroke?:IDefaultTextStroke
Min and max values of the text stroke width in points, including the color and the size. The default values are calculated based on the text font size.
layoutItemSettingsButtonEnabled?
optionallayoutItemSettingsButtonEnabled?:boolean
Displays the Smart group button to configure the auto-layout settings of grouped design elements. The default value is true.
textStrokeColorButtonEnabled?
optionaltextStrokeColorButtonEnabled?:boolean
Displays the Stroke color button to change the color of text stroke. If true, the user can change the stroke color. If false, the color is maintained the same as the text color. The default value is true.
placeInSafetyAreaButtonEnabled?
optionalplaceInSafetyAreaButtonEnabled?:boolean
Displays the Place in button to fit the selected design elements to an area bounded by safety lines. The default value is true.
groupButtonEnabled?
optionalgroupButtonEnabled?:boolean
Displays the Group/Ungroup button for items. The default value is true.
groupItemsEnabled?
optionalgroupItemsEnabled?:boolean
Obsolete. Left for compatibility. Works like groupButtonEnabled