|
1 | 1 | --- |
2 | 2 | layout: post |
3 | | -title: Add Save Button in Built-In Toolbar | Syncfusion |
4 | | -description: Learn here all about adding save button in built-in Toolbar in Syncfusion ASP.NET Core Pdfviewer component of Syncfusion Essential JS 2 and more. |
| 3 | +title: Add Save button to the built-in toolbar in ASP.NET Core PDF Viewer | Syncfusion |
| 4 | +description: Learn how to add, show, hide, enable, and disable a custom Save button in the built-in toolbar of the Syncfusion ASP.NET Core PDF Viewer component. |
5 | 5 | platform: document-processing |
6 | 6 | control: PDF Viewer |
7 | 7 | publishingplatform: ASP.NET Core |
8 | 8 | documentation: ug |
9 | 9 | --- |
10 | 10 |
|
11 | | -# Add Save Button in Built-In toolbar |
| 11 | +# Add a Save button to the built-in toolbar |
12 | 12 |
|
13 | | -PDF Viewer allows you to customize(add, show, hide, enable, and disable) existing items in a toolbar. |
| 13 | +PDF Viewer supports customizing toolbar items, including adding, showing, hiding, enabling, and disabling items. |
14 | 14 |
|
15 | | -* Save button - New `save` button-item can be defined by **CustomToolbarItemModel** and with existing items in [**ToolbarSettings**](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html) property. Save button-item click action can be defined in `toolbarclick`. |
| 15 | +- Save button: Define the `Save` button using **CustomToolbarItemModel** and include it alongside existing items via [**ToolbarSettings**](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html). Handle clicks in the toolbarClick event. |
16 | 16 |
|
17 | | -* Show, Hide - `Save` button-item can be shown or hidden using the [`ToolbarSettings`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html#Syncfusion_EJ2_PdfViewer_PdfViewerToolbarSettings_ToolbarItems). |
| 17 | +- Show or hide: Show or hide the `Save` button using [**ToolbarSettings**](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html). Predefined toolbar items are listed under [`ToolbarItem`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html#Syncfusion_EJ2_PdfViewer_PdfViewerToolbarSettings_ToolbarItems). |
18 | 18 |
|
19 | | -* Enable, Disable - `Save` button-item can be enabled or disable using `enabletoolbaritem`. |
| 19 | +- Enable or disable: Enable or disable the `Save` button using `enableToolbarItem`. |
20 | 20 |
|
21 | 21 | {% tabs %} |
22 | 22 | {% highlight html tabtitle="Standalone" %} |
@@ -105,34 +105,33 @@ PDF Viewer allows you to customize(add, show, hide, enable, and disable) existin |
105 | 105 | {% endhighlight %} |
106 | 106 | {% endtabs %} |
107 | 107 |
|
108 | | -N> Default value of toolbar items is ['OpenOption', 'PageNavigationTool','MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'DownloadOption','UndoRedoTool', 'AnnotationEditTool', 'FormDesignerEditTool', 'CommentTool', 'SubmitForm'] |
| 108 | +N> Default toolbar items: ['OpenOption', 'PageNavigationTool','MagnificationTool', 'PanTool', 'SelectionTool', 'SearchOption', 'PrintOption', 'DownloadOption','UndoRedoTool', 'AnnotationEditTool', 'FormDesignerEditTool', 'CommentTool', 'SubmitForm'] |
109 | 109 |
|
110 | | -### Align Property |
| 110 | +### Align property |
111 | 111 |
|
112 | | -The align property is used to specify the alignment of a `save` button-item within the toolbar. |
| 112 | +Specifies the alignment of the `Save` button within the toolbar. |
113 | 113 |
|
114 | | -`Left`: Aligns the item to the left side of the toolbar. |
115 | | -`Right`: Aligns the item to the right side of the toolbar. |
| 114 | +- `Left`: Aligns the item to the left side of the toolbar. |
| 115 | +- `Right`: Aligns the item to the right side of the toolbar. |
116 | 116 |
|
117 | | -### Tooltip Property |
| 117 | +### Tooltip property |
118 | 118 |
|
119 | | -The tooltip property is used to set the tooltip text for a `save` button-item. Tooltip provides additional information when a user hovers over the item. |
| 119 | +Sets the tooltip text for the Save button. The tooltip provides additional information on hover. |
120 | 120 |
|
121 | | -### CssClass Property |
| 121 | +### CssClass property |
122 | 122 |
|
123 | | -The cssClass property is used to apply custom CSS classes to a `save` button-item. It allows custom styling of the save button-item. |
| 123 | +Applies custom CSS classes to the Save button for styling. |
124 | 124 |
|
125 | | -### Prefix Property |
| 125 | +### Prefix property |
126 | 126 |
|
127 | | -The prefix property is used to set the CSS class or icon that should be added as a prefix to the existing content of the toolbar item. |
| 127 | +Sets the CSS class or icon to add as a prefix to the Save button content. |
128 | 128 |
|
129 | | -### ID Property |
| 129 | +### ID property |
130 | 130 |
|
131 | | -The id property within a CustomToolbarItemModel is a compulsory attribute that plays a vital role in toolbar customization. It serves as a unique identifier for each toolbar item, facilitating distinct references and interactions. |
| 131 | +The id property within a CustomToolbarItemModel is required and uniquely identifies each toolbar item for configuration and interaction. |
132 | 132 |
|
133 | | -When defining or customizing toolbar items, it is mandatory to assign a specific and descriptive id to each item. |
134 | | -These properties are commonly used when defining custom toolbar items with the `CustomToolbarItemModel`` in the context of Syncfusion<sup style="font-size:70%">®</sup> PDF Viewer. When configuring the toolbar using the `ToolbarSettings`` property, you can include these properties to customize the appearance and behavior of each toolbar item. |
| 133 | +When defining or customizing toolbar items, assign a specific, descriptive id to each item. These properties are commonly used when defining custom toolbar items with `CustomToolbarItemModel` in the context of the Syncfusion<sup style="font-size:70%">®</sup> PDF Viewer. When configuring the toolbar using the `ToolbarSettings` property, include these properties to customize appearance and behavior. |
135 | 134 |
|
136 | | -N> When customizing `save` button-item, you have the flexibility to include either icons or text based on your design preference. |
| 135 | +N> When customizing the Save button, icons or text can be used based on design preference. |
137 | 136 |
|
138 | 137 | [View sample in GitHub](https://github.com/SyncfusionExamples/asp-core-pdf-viewer-examples/tree/master/How%20to) |
0 commit comments