ScrollViewTagHelper
Kendo UI ScrollView TagHelper ScrollViewTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-scrollview")]
[RestrictChildren("items", new string[] { "datasource", "messages", "pageable", "aria-template", "empty-template", "item-template" })]
[OutputElementHint("div")]
public class ScrollViewTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseScrollViewTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-scrollview name="scrollView">
<items>
<scrollview-item>
<content>
<h1>One</h1>
</content>
</scrollview-item>
<scrollview-item>
<content>
<h1>Two</h1>
</content>
</scrollview-item>
<scrollview-item>
<content>
<h1>Three</h1>
</content>
</scrollview-item>
</items>
</kendo-scrollview>
Child Tags
Constructors
Initializes a new instance of the ScrollViewTagHelper class.
public ScrollViewTagHelper(IKendoHtmlGenerator generator)
Properties
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public string ARIATemplate { get; set; }
Specifies a template is used to populate an aria-live element that anounces which is the current item. This option expects the name of a JavaScript function that will be called to return the template.
public string ARIATemplateHandler { get; set; }
Specifies a template is used to populate an aria-live element that anounces which is the current item. This option expects the ID of the script element that contains the template.
public string ARIATemplateId { get; set; }
Specifies a template is used to populate an aria-live element that anounces which is the current item. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent ARIATemplateView { get; set; }
If set to false the widget will not bind to the DataSource during initialization.
public bool? AutoBind { get; set; }
The intensity of the swipe after which the swipe will result in a bounce effect when the user scrolls to the next page. Higher values require more accelerative swipe to notice the bounce effect when a page is changed.
public double? BounceVelocityThreshold { get; set; }
The height of the ScrollView content. Supports 100% if the ScrollView container element does have set height. Each page will be streched to fill the container height.
public string ContentHeight { get; set; }
The Id of the data source.
public string DatasourceId { get; set; }
The duration (in milliseconds) for the ScrollView to snap to the current page after the user releases it.
public double? Duration { get; set; }
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public string EmptyTemplate { get; set; }
The template for rendering the pages without content. By default, the ScrollView renders a blank page. This option expects the name of a JavaScript function that will be called to return the template.
public string EmptyTemplateHandler { get; set; }
The template for rendering the pages without content. By default, the ScrollView renders a blank page. This option expects the ID of the script element that contains the template.
public string EmptyTemplateId { get; set; }
The template for rendering the pages without content. By default, the ScrollView renders a blank page. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent EmptyTemplateView { get; set; }
If set to true, the ScrollView will display a pager. By default, the pager is enabled.
public bool? EnablePager { get; set; }
If set to true enables the built-in keyboard navigation
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the change event. Fires when the ScrollView page is changed.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ScrollView is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the refresh event. Fires when the ScrollView refreshes.
public string OnRefresh { get; set; }
Sets an overlay background color for the pager. It can be configured to one of the three possible values: - none - no background overlay is set - dark - sets a dark-colored background overlay - light - sets a light-colored background overlay
public string PagerOverlay { get; set; }
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public string Template { get; set; }
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
The length of the horizontal swipe after which a swipe will navigate to the next page - as opposed to snapping back to the current page. Higher values require long area swipes to navigate to the next page.
public double? VelocityThreshold { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: