# PDFViewerToolbarSettingsItemBuilder

## Methods

### Type(System.String)

Specifies the type of toolbar item to be rendered. Supported types include button, separator, spacer, splitButton, buttonGroup, and template as defined by the ToolBar component.

#### Parameters

##### value - `System.String`

The value for Type

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("pager").Type("pager");
                    })
                )
             )
             
```

### Overflow(System.String)

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.

#### Parameters

##### value - `System.String`

The value for Overflow

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Command(System.String)

Default commands in the PDF Viewer are: OpenCommand; PageChangeCommand; DownloadCommand; EnableSelectionCommand; EnablePanCommand or ExportCommand.

#### Parameters

##### value - `System.String`

The value for Command

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Command("PageChangeCommand").Type("pager").Name("pager");
                    })
                )
             )
             
```

### Name(System.String)

Specifies the tool's name. Tool definition will be taken from the default collection - kendo.pdfviewer.DefaultTools

#### Parameters

##### value - `System.String`

The value for Name

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Type("pager").Name("pager");
                    })
                )
             )
             
```

### Click(System.String)

Specifies the click event handler of the button.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will be evaluated.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Click(System.Func)

Specifies the click event handler of the button.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Toggle(System.String)

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will be evaluated.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Toggle(System.Func)

Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Togglable(System.Boolean)

Specifies if the button is togglable, e.g. has a selected and unselected state.

#### Parameters

##### value - `System.Boolean`

The value for Togglable

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Command("PrintCommand").Type("button").Name("print").Togglable(true).Toggle("onPrintClick");
                    })
                )
             )
             
```

### Togglable()

Specifies if the button is togglable, e.g. has a selected and unselected state.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Command("PrintCommand").Type("button").Name("print").Togglable(true).Toggle("onPrintClick");
                    })
                )
             )
             
```

### Text(System.String)

Sets the text of the button.

#### Parameters

##### value - `System.String`

The value for Text

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Text("Custom tool");
                    })
                )
             )
             
```

### Template(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

#### Parameters

##### value - `System.String`

The value for Template

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### TemplateId(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

#### Parameters

##### templateId - `System.String`

The ID of the template element for Template

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for Template

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### TemplateHandler(System.String)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for Template

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the template.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### ShowText(System.String)

Specifies where the text will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

#### Parameters

##### value - `System.String`

The value for ShowText

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").ShowText("both");
                    })
                )
             )
             
```

### Primary(System.Boolean)

Specifies whether the button is primary. Primary buttons receive different styling.

#### Parameters

##### value - `System.Boolean`

The value for Primary

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Primary(true);
                    })
                )
             )
             
```

### Primary()

Specifies whether the button is primary. Primary buttons receive different styling.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Primary(true);
                    })
                )
             )
             
```

### HtmlAttributes(System.Collections.Generic.IDictionary)

#### Parameters

##### value - `System.Collections.Generic.IDictionary<String,Object>`

### HtmlAttributes(System.Object)

Specifies the HTML attributes of a ToolBar button.

#### Parameters

##### value - `System.Object`

The value for HtmlAttributes

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

### Enable(System.Boolean)

Specifies whether the control is initially enabled or disabled. Default value is "true".

#### Parameters

##### value - `System.Boolean`

The value for Enable

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").Enable(false);
                    })
                )
             )
             
```

### Hidden(System.Boolean)

Determines if a button is visible or hidden. By default buttons are visible.

#### Parameters

##### value - `System.Boolean`

The value for Hidden

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").Hidden(true);
                    })
                )
             )
             
```

### Hidden()

Determines if a button is visible or hidden. By default buttons are visible.

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").Hidden(true);
                    })
                )
             )
             
```

### SpriteCssClass(System.String)

Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.

#### Parameters

##### value - `System.String`

The value for SpriteCssClass

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").SpriteCssClass("customIconClass");
                    })
                )
             )
             
```

### ImageUrl(System.String)

If set, the ToolBar will render an image with the specified URL in the button.

#### Parameters

##### value - `System.String`

The value for ImageUrl

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").ImageUrl(Url.Content("~/Content/shared/icons/16/star.png"));
                    })
                )
             )
             
```

### ShowIcon(System.String)

Specifies where the button icon will be displayed. Possible values are: "toolbar", "overflow" or "both" (default).

#### Parameters

##### value - `System.String`

The value for ShowIcon

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").ShowIcon("both");
                    })
                )
             )
             
```

### Icon(System.String)

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

#### Parameters

##### icon - `System.String`

The icon.

#### RETURNS

Returns the current instance of [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) .

### Icon(System.Action)

Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

#### Parameters

##### configurator - System.Action<[PDFViewerToolbarItemIconSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbaritemiconsettingsbuilder)>

The configurator for the icon setting.

#### RETURNS

Returns the current instance of [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) .

### Id(System.String)

Specifies the ID of the button.

#### Parameters

##### value - `System.String`

The value for Id

#### RETURNS

Returns the current [PDFViewerToolbarSettingsItemBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pdfviewertoolbarsettingsitembuilder) instance.

#### Example

```
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("custom").Type("button").Text("custom").Id("custom-btn-1");
                    })
                )
             )
             
```
