ScrollViewBuilder
Defines the fluent API for configuring the Kendo UI ScrollView
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ScrollViewBuilder : WidgetBuilderBase<ScrollView, ScrollViewBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ScrollView, ScrollViewBuilder>ScrollViewBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ScrollViewBuilder class.
Methods
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public ScrollViewBuilder ARIATemplate(string value)
The value for ARIATemplate
Returns:Returns the current ScrollViewBuilder instance.
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public ScrollViewBuilder ARIATemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the ariatemplate.
Returns:Returns the current ScrollViewBuilder instance.
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public ScrollViewBuilder ARIATemplateHandler(string templateHandler)
The handler that returs the template for ARIATemplate
Returns:Returns the current ScrollViewBuilder instance.
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public ScrollViewBuilder ARIATemplateId(string templateId)
The ID of the template element for ARIATemplate
Returns:Returns the current ScrollViewBuilder instance.
Specifies a template is used to populate an aria-live element that anounces which is the current item.
public ScrollViewBuilder ARIATemplateView(IHtmlContent templateView)
The view that contains the template for ARIATemplate
Returns:Returns the current ScrollViewBuilder instance.
If set to false the widget will not bind to the DataSource during initialization.
public ScrollViewBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current ScrollViewBuilder instance.
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 ScrollViewBuilder BounceVelocityThreshold(double value)
The value for BounceVelocityThreshold
Returns:Returns the current ScrollViewBuilder instance.
The height of the ScrollView content.
public ScrollViewBuilder ContentHeight(int value)
The value that configures the content height.
Returns:Returns the current ScrollViewBuilder instance.
The height of the ScrollView content.
public ScrollViewBuilder ContentHeight(string value)
The value for ContentHeight
Returns:Returns the current ScrollViewBuilder instance.
Configure the DataSource of the component
public ScrollViewBuilder DataSource(Action<DataSourceBuilder<object>> configurator)
The DataSourceBuilder<TModel> that configures the DataSource of the component.
Returns:Returns the current ScrollViewBuilder instance.
Sets the ID of the DataSource that will be used by the ScrollView.
public ScrollViewBuilder DataSource(string dataSourceId)
The name of the DataSource.
Returns:Returns the current ScrollViewBuilder instance.
The duration (in milliseconds) for the ScrollView to snap to the current page after the user releases it.
public ScrollViewBuilder Duration(double value)
The value for Duration
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public ScrollViewBuilder EmptyTemplate(string value)
The value for EmptyTemplate
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public ScrollViewBuilder EmptyTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the emptytemplate.
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public ScrollViewBuilder EmptyTemplateHandler(string templateHandler)
The handler that returs the template for EmptyTemplate
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public ScrollViewBuilder EmptyTemplateId(string templateId)
The ID of the template element for EmptyTemplate
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the pages without content. By default, the ScrollView renders a blank page.
public ScrollViewBuilder EmptyTemplateView(IHtmlContent templateView)
The view that contains the template for EmptyTemplate
Returns:Returns the current ScrollViewBuilder instance.
If set to true, the ScrollView will display a pager. By default, the pager is enabled.
public ScrollViewBuilder EnablePager(bool value)
The value for EnablePager
Returns:Returns the current ScrollViewBuilder instance.
Configures the client-side events.
public ScrollViewBuilder Events(Action<ScrollViewEventBuilder> configurator)
The client events action.
Returns:Returns the current ScrollViewBuilder instance.
Defines the items in the scrollview
public ScrollViewBuilder Items(Action<ScrollViewItemFactory> addAction)
The add action.
Returns:Returns the current ScrollViewBuilder instance.
Defines the messages that are set as aria-lables for the previous and next buttons.
public ScrollViewBuilder Messages(Action<ScrollViewMessagesSettingsBuilder> configurator)
The ScrollViewMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of ScrollViewBuilder .
If set to true enables the built-in keyboard navigation
If set to true enables the built-in keyboard navigation
public ScrollViewBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current ScrollViewBuilder instance.
The initial page that will be displayed.
public ScrollViewBuilder Page(double value)
The value for Page
Returns:Returns the current ScrollViewBuilder instance.
If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.
public ScrollViewBuilder Pageable()
Returns the current instance of ScrollViewPageableSettingsBuilder .
If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.
public ScrollViewBuilder Pageable(Action<ScrollViewPageableSettingsBuilder> configurator)
The ScrollViewPageableSettingsBuilder for the pageable setting.
Returns:Returns the current instance of ScrollViewBuilder .
If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.
public ScrollViewBuilder Pageable(bool enabled)
Enables or disables the pageable option.
Returns:Returns the current instance of ScrollViewPageableSettingsBuilder .
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 ScrollViewBuilder PagerOverlay(string value)
The value for PagerOverlay
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public ScrollViewBuilder Template(string value)
The value for Template
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public ScrollViewBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public ScrollViewBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public ScrollViewBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current ScrollViewBuilder instance.
The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.
public ScrollViewBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current ScrollViewBuilder instance.
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 ScrollViewBuilder VelocityThreshold(double value)
The value for VelocityThreshold
Returns:Returns the current ScrollViewBuilder instance.