Class MainToolbarItems.CustomMainToolbarToggleButton
Custom toggle button on main toolbar.
Inheritance
MainToolbarItems.CustomMainToolbarToggleButton
Implements
Inherited Members
Namespace: PSPDFKit.Sdk.Models.Toolbar
Assembly: Sdk.dll
Syntax
public sealed class MainToolbarItems.CustomMainToolbarToggleButton : MainToolbarToggleButtonBase, ICustomMainToolbarToggleButton, ICustomMainToolbarButton, ICustomMainToolbarItem, IMainToolbarToggleButton, IMainToolbarButton, IMainToolbarItem, INotifyPropertyChanged
Constructors
| Edit this page View SourceCustomMainToolbarToggleButton(string)
Initalizes a new instance of MainToolbarItems.CustomMainToolbarToggleButton class.
Declaration
public CustomMainToolbarToggleButton(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Unique identifier for the custom toggle button. |
Properties
| Edit this page View SourceId
Gets or sets the unique identifier for the item.
Declaration
[JsonProperty("id")]
public string Id { get; init; }
Property Value
Type | Description |
---|---|
string |
ResponsiveGroup
Gets or sets the toolbar type to which the button belongs. It can be used to link multiple toolbar items to the same toolbar type. Those items will be hidden when the responsive group icon is displayed and can be seen when we click (i.e. open) the group. Whenever a toolbar item is active and its responsive group is shown, the responsive group is open so the active state can be seen.
Declaration
[JsonProperty("responsiveGroup", NullValueHandling = NullValueHandling.Ignore)]
public string ResponsiveGroup { get; set; }
Property Value
Type | Description |
---|---|
string |
Events
| Edit this page View SourceClicked
Occurs when the button with Id is clicked/tapped.
Declaration
public event EventHandler Clicked
Event Type
Type | Description |
---|---|
EventHandler |