TimelineBuilder<T>
Defines the fluent API for configuring the Telerik UI Timeline for ASP.NET Core
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TimelineBuilder<T> : WidgetBuilderBase<Timeline<T>, TimelineBuilder<T>>, IHtmlContent where T : class
Inheritance: objectHelperResultWidgetBuilderBase<Timeline<T>, TimelineBuilder<T>>TimelineBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the TimelineBuilder<T> class.
Methods
Indicates whether events should be positioned on both sides of the timeline axis. By default all events are displayed on the right side of the timeline axis.
public TimelineBuilder<T> AlternatingMode()
Returns the current TimelineBuilder<T> instance.
Indicates whether events should be positioned on both sides of the timeline axis. By default all events are displayed on the right side of the timeline axis.
public TimelineBuilder<T> AlternatingMode(bool value)
The value for AlternatingMode
Returns:Returns the current TimelineBuilder<T> instance.
If set to false, the Timeline will not bind to the data source during initialization, i.e. it will not call the fetch method of the dataSource instance. In such scenarios data binding will occur when the change event of the dataSource instance is fired. By default, autoBind is set to true and the widget will bind to the data source specified in the configuration.
public TimelineBuilder<T> AutoBind(bool value)
The value for AutoBind
Returns:Returns the current TimelineBuilder<T> instance.
Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.
public TimelineBuilder<T> CollapsibleEvents()
Returns the current TimelineBuilder<T> instance.
Enables the events in the Kendo UI Timeline to be expandable or collapsible. When enabled initially all events are collapsed.
public TimelineBuilder<T> CollapsibleEvents(bool value)
The value for CollapsibleEvents
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the actions information for the event.
public TimelineBuilder<T> DataActionsField(string value)
The value for DataActionsField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides information when the given event happened in time.
public TimelineBuilder<T> DataDateField(string value)
The value for DataDateField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the description information for the event.
public TimelineBuilder<T> DataDescriptionField(string value)
The value for DataDescriptionField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the value for the alt attribute of the images.
public TimelineBuilder<T> DataImagesAltField(string value)
The value for DataImagesAltField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the images information for the event.
public TimelineBuilder<T> DataImagesField(string value)
The value for DataImagesField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the data source configuration of the Timeline.
public TimelineBuilder<T> DataSource(Action<TimelineReadOnlyDataSourceBuilder> configurator)
The action that will be used to declare the DataSource.
Returns:Returns the current TimelineBuilder<T> instance.
Sets the ID of the DataSource used by the Timeline.
public TimelineBuilder<T> DataSource(string dataSourceId)
The DataSource component that will be used to define the DataSource of the Timeline.
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the subtitle information for the event.
public TimelineBuilder<T> DataSubtitleField(string value)
The value for DataSubtitleField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the field of the data item that provides the title information for the event.
public TimelineBuilder<T> DataTitleField(string value)
The value for DataTitleField
Returns:Returns the current TimelineBuilder<T> instance.
Sets the date format used to display the date in the event's label
public TimelineBuilder<T> DateFormat(string value)
The value for DateFormat
Returns:Returns the current TimelineBuilder<T> instance.
Sets specific height for the event in horizontal mode.
public TimelineBuilder<T> EventHeight(double value)
The value for EventHeight
Returns:Returns the current TimelineBuilder<T> instance.
Configures the client-side events.
public TimelineBuilder<T> Events(Action<TimelineEventBuilder> configurator)
The client events action.
Returns:Returns the current TimelineBuilder<T> instance.
Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplate(string value)
The value for EventTemplate
Returns:Returns the current TimelineBuilder<T> instance.
Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplate<TModel>(TemplateBuilder<TModel> template)
The Template component which contains the template.
Returns:Returns the current TimelineBuilder<T> instance.
Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateHandler(string templateHandler)
The JavaScript function which contains the template for EventTemplate
Returns:Returns the current TimelineBuilder<T> instance.
Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateId(string templateId)
The ID of the template element for EventTemplate
Returns:Returns the current TimelineBuilder<T> instance.
Specifies the template used to render the event details.
public TimelineBuilder<T> EventTemplateView(IHtmlContent templateView)
The view which contains the template for EventTemplate
Returns:Returns the current TimelineBuilder<T> instance.
Sets specific width for the event in vertical mode.
public TimelineBuilder<T> EventWidth(double value)
The value for EventWidth
Returns:Returns the current TimelineBuilder<T> instance.
If set to true, will enable the keyboard navigation for the component.
public TimelineBuilder<T> Navigatable()
Returns the current TimelineBuilder<T> instance.
If set to true, will enable the keyboard navigation for the component.
public TimelineBuilder<T> Navigatable(bool value)
The value for Navigatable
Returns:Returns the current TimelineBuilder<T> instance.
Defines the orientation of the Timeline widget
public TimelineBuilder<T> Orientation(TimelineOrientation value)
The value for Orientation
Returns:Returns the current TimelineBuilder<T> instance.
If set to false, the event's date label will be hidden.
public TimelineBuilder<T> ShowDateLabels(bool value)
The value for ShowDateLabels
Returns:Returns the current TimelineBuilder<T> instance.