Search results

CustomToolbarItem API in JavaScript PDF Viewer API control

Defines customized toolbar items.

Properties

align

string

Define which side(right/left) to use for customizing the icon.

cssClass

string

Defines single/multiple classes (separated by space) to be used for customization of commands.

id

string

Specifies the unique ID to be used with button or input element of Toolbar items.

prefixIcon

string

Defines single/multiple classes separated by space used to specify an icon for the button. The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.

template

string | object | Function

Specifies the HTML element/element ID as a string that can be added as a Toolbar command.

text

string

Specifies the text to be displayed on the Toolbar button.

tooltipText

string

Specifies the text to be displayed on the Toolbar button.

type

string

Specify the type or category of the Toolbar item.