Kendo UI previewPane TagHelper FileManagerPreviewPaneSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[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:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-filemanager name="filemanager">
<preview-pane meta-fields='["@FileExtension","@Size"]'></preview-pane>
</kendo-filemanager>
Child Tags
Constructors
Initializes a new instance of the FileManagerPreviewPaneSettingsTagHelper class.
public FileManagerPreviewPaneSettingsTagHelper()
Properties
Configures the meta fields to be showed in the preview pane.
public string[] MetaFields { get; set; }
Defines a new template for the preview pane when multiple files/folders are selected.
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.
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.
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.
public IHtmlContent MultipleFilesTemplateView { get; set; }
Defines a new template for the preview pane when no file/folder is selected.
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.
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.
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.
public IHtmlContent NoFileTemplateView { get; set; }
Defines a new template for the preview pane when a single file/folder is selected.
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.
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.
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.
public IHtmlContent SingleFileTemplateView { get; set; }
Configures the templates for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.