new PresetButton(properties)
Creates a new instance of PresetButton.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object | An object that contains the properties of the PresetButton.
Properties
|
Example
const presetButton = new instance.UI.Components.PresetButton({ buttonType: 'saveAsButton', dataElement: 'presetButton-save' });
Extends
Members
-
<static> contentEditButton
-
A button that toggles Content Edit Mode.
-
<static> createPortfolioButton
-
A button that opens the create portfolio modal.
-
<static> downloadButton
-
A button that downloads the current document.
-
<static> filePickerButton
-
A button that allows the opening of a file as the document in the UI.
-
<static> formFieldEditButton
-
A button that toggles form field edit mode.
-
<static> fullscreenButton
-
A button that toggles fullscreen mode.
-
<static> newDocumentButton
-
A button that creates a new document.
-
<static> printButton
-
A button that prints the document.
-
<static> redoButton
-
A button that performs the redo action.
-
<static> saveAsButton
-
A button that opens the save as modal.
-
<static> settingsButton
-
A button that opens the settings modal.
-
<static> toggleAccessibilityModeButton
-
A button that toggles the accessibility mode on and off.
-
<static> undoButton
-
A button that performs the undo action.
Methods
-
setStyle(style)
-
Sets the style of the Item (padding, border, background, etc.)
Parameters:
Name Type Description style
Object An object that can change the CSS style of the Item component. - Inherited From: