You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/asp-net-core/toolbar-customization/form-designer-toolbar-customization.md
-26Lines changed: 0 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,32 +52,6 @@ Use [`PdfViewerToolbarSettings`](https://help.syncfusion.com/cr/aspnetcore-js2/S
52
52
53
53
The following example demonstrates how to customize the form designer toolbar by configuring specific tools using `FormDesignerToolbarItem`.
The PDF Viewer allows you to customize (add, show, hide, enable, and disable) existing items in the toolbar.
166
+
167
+
- Add: Define new items using **CustomToolbarItemModel** and include them with existing items via the [**ToolbarSettings**](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html) property. Handle clicks in the toolbarClick event.
168
+
169
+
- Show/Hide: Show or hide existing items using the [**ToolbarSettings**](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html) property. Predefined toolbar items are available via [`ToolbarItem`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings.html#Syncfusion_EJ2_PdfViewer_PdfViewerToolbarSettings_ToolbarItems).
170
+
171
+
- Enable/Disable: Toolbar items can be enabled or disabled using enableToolbarItem.
The Align property specifies the alignment of a toolbar item within the toolbar.
297
+
298
+
`Left`: Aligns the item to the left side of the toolbar.
299
+
`Right`: Aligns the item to the right side of the toolbar.
300
+
301
+
### Tooltip property
302
+
303
+
The Tooltip property sets the tooltip text for a toolbar item. Tooltips provide additional information when a user hovers over the item.
304
+
305
+
### CssClass property
306
+
307
+
The CssClass property applies custom CSS classes to a toolbar item for custom styling.
308
+
309
+
### Prefix property
310
+
311
+
The Prefix property sets the CSS class or icon added as a prefix to the existing content of the toolbar item.
312
+
313
+
### ID property
314
+
315
+
The Id property of a CustomToolbarItemModel uniquely identifies a toolbar item and is required for customization.
316
+
317
+
When defining or customizing toolbar items, assign a specific and descriptive Id to each item.
318
+
These properties are commonly used when defining custom toolbar items with the CustomToolbarItemModel in the context of the Syncfusion 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.
319
+
320
+
N> When customizing toolbar items, you have the flexibility to include either icons or text based on your design preference.
321
+
322
+
[View sample in GitHub](https://github.com/SyncfusionExamples/asp-core-pdf-viewer-examples/tree/master/How%20to/Customize%20existing%20toolbar)
0 commit comments