New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI previewPane TagHelper FileManagerPreviewPaneSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("preview-pane", ParentTag = "kendo-filemanager", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("multiple-files-template", new string[] { "no-file-template", "single-file-template" })]
[SuppressTagRendering]
public class FileManagerPreviewPaneSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseFileManagerPreviewPaneSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-filemanager name="filemanager">
    <preview-pane meta-fields='["@FileExtension","@Size"]'></preview-pane>
</kendo-filemanager>

Constructors

Initializes a new instance of the FileManagerPreviewPaneSettingsTagHelper class.

C#
public FileManagerPreviewPaneSettingsTagHelper()

Properties

Configures the meta fields to be showed in the preview pane.

C#
public string[] MetaFields { get; set; }

Defines a new template for the preview pane when multiple files/folders are selected.

C#
public string MultipleFilesTemplate { get; set; }

Defines a new template for the preview pane when multiple files/folders are selected. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string MultipleFilesTemplateHandler { get; set; }

Defines a new template for the preview pane when multiple files/folders are selected. This option expects the ID of the script element that contains the template.

C#
public string MultipleFilesTemplateId { get; set; }

Defines a new template for the preview pane when multiple files/folders are selected. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent MultipleFilesTemplateView { get; set; }

Defines a new template for the preview pane when no file/folder is selected.

C#
public string NoFileTemplate { get; set; }

Defines a new template for the preview pane when no file/folder is selected. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string NoFileTemplateHandler { get; set; }

Defines a new template for the preview pane when no file/folder is selected. This option expects the ID of the script element that contains the template.

C#
public string NoFileTemplateId { get; set; }

Defines a new template for the preview pane when no file/folder is selected. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent NoFileTemplateView { get; set; }

Defines a new template for the preview pane when a single file/folder is selected.

C#
public string SingleFileTemplate { get; set; }

Defines a new template for the preview pane when a single file/folder is selected. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string SingleFileTemplateHandler { get; set; }

Defines a new template for the preview pane when a single file/folder is selected. This option expects the ID of the script element that contains the template.

C#
public string SingleFileTemplateId { get; set; }

Defines a new template for the preview pane when a single file/folder is selected. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent SingleFileTemplateView { get; set; }

Configures the templates for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>