Defines the fluent API for configuring the PDFViewerToolbarSettingsItem settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PDFViewerToolbarSettingsItemBuilder
Inheritance: objectPDFViewerToolbarSettingsItemBuilder
Inherited Members
Constructors
Initialize the PDFViewerToolbarSettingsItemBuilder
public PDFViewerToolbarSettingsItemBuilder(PDFViewerToolbarSettingsItem settings)
Methods
Specifies the click event handler of the tool button.
public PDFViewerToolbarSettingsItemBuilder Click(string handler)
The value that configures the click action.
Returns:Sets the command of the Toolbar tool. The default commands are: 'OpenCommand', 'PageChangeCommand', 'DownloadCommand', 'EnableSelectionCommand', 'EnablePanCommand', 'ExportCommand', 'PrintCommand', 'OpenSearchCommand', and 'ZoomCommand'.
public PDFViewerToolbarSettingsItemBuilder Command(string value)
The value that configures the command.
Returns:Specifies whether the control is initially enabled or disabled. Default value is "true".
public PDFViewerToolbarSettingsItemBuilder Enable(bool value)
The value that configures the enable.
Returns:Determines if a button is visible or hidden. By default buttons are visible.
public PDFViewerToolbarSettingsItemBuilder Hidden(bool value)
The value that configures the hidden.
Returns:public PDFViewerToolbarSettingsItemBuilder HtmlAttributes(IDictionary<string, object> value)
Specifies the HTML attributes of the ToolBar button.
public PDFViewerToolbarSettingsItemBuilder HtmlAttributes(object value)
The value that configures the htmlattributes.
Returns:Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.
public PDFViewerToolbarSettingsItemBuilder Icon(string value)
The value that configures the icon.
Returns:Specifies the ID of the button.
public PDFViewerToolbarSettingsItemBuilder Id(string value)
The value that configures the id.
Returns:If set, the ToolBar will render an image with the specified URL in the button.
public PDFViewerToolbarSettingsItemBuilder ImageUrl(string value)
The value that configures the imageurl.
Returns:Specifies the Toolbar tool's name. The tool definition will be taken from the default collection - 'kendo.pdfviewer.DefaultTools'.
public PDFViewerToolbarSettingsItemBuilder Name(string value)
The value that configures the name.
Returns:Specifies the overflow behavior of the toolbar item. Accepts auto, never, or always to control when the item appears in the toolbar's overflow menu.
public PDFViewerToolbarSettingsItemBuilder Overflow(string value)
The value that configures the overflow.
Returns:Specifies whether the button is primary. Primary buttons receive different styling.
public PDFViewerToolbarSettingsItemBuilder Primary(bool value)
The value that configures the primary.
Returns:Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
public PDFViewerToolbarSettingsItemBuilder ShowIcon(string value)
The value that configures the showicon.
Returns:Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).
public PDFViewerToolbarSettingsItemBuilder ShowText(string value)
The value that configures the showtext.
Returns:Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.
public PDFViewerToolbarSettingsItemBuilder SpriteCssClass(string value)
The value that configures the spritecssclass.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template do not have a Type().
public PDFViewerToolbarSettingsItemBuilder Template(string value)
The value that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template do not have a Type().
public PDFViewerToolbarSettingsItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template do not have a Type().
public PDFViewerToolbarSettingsItemBuilder TemplateHandler(string value)
The value that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template do not have a Type().
public PDFViewerToolbarSettingsItemBuilder TemplateId(string value)
The value that configures the template.
Returns:Specifies what element will be added in the ToolBar wrapper. Items with template do not have a Type().
public PDFViewerToolbarSettingsItemBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:Sets the text of the tool button.
public PDFViewerToolbarSettingsItemBuilder Text(string value)
The value that configures the text.
Returns:Specifies if the tool button is togglable, e.g. has a selected and unselected state.
public PDFViewerToolbarSettingsItemBuilder Togglable(bool value)
The value that configures the togglable.
Returns:Specifies the toggle event handler of the tool button. Applicable only for commands of type "button" and Togglable(true).
public PDFViewerToolbarSettingsItemBuilder Toggle(string handler)
The value that configures the toggle action.
Returns:Specifies the type of the Toolbar tool.
public PDFViewerToolbarSettingsItemBuilder Type(string value)
The value that configures the type.
Returns: