Class TimelineBuilder
Inheritance
System.Object
TimelineBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class TimelineBuilder : ControlBuilder
Constructors
TimelineBuilder()
Declaration
TimelineBuilder(Timeline)
Declaration
public TimelineBuilder(Timeline model)
Parameters
Fields
model
Declaration
Field Value
Properties
HtmlAttr
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
System.Collections.Generic.IDictionary<System.String, System.Object> |
ID
Declaration
public string ID { get; set; }
Property Value
Output
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
System.IO.TextWriter |
Overrides
Methods
Align(TimelineAlign)
Defines the alignment of item content within the Timeline.
Declaration
public TimelineBuilder Align(TimelineAlign align)
Parameters
Returns
BeforeItemRender(String)
Event triggers before rendering each item.
Declaration
public TimelineBuilder BeforeItemRender(string beforeItemRender)
Parameters
Type |
Name |
Description |
System.String |
beforeItemRender |
|
Returns
ContentTemplate(Action<Object>)
Declaration
public TimelineBuilder ContentTemplate(Action<object> template)
Parameters
Type |
Name |
Description |
System.Action<System.Object> |
template |
|
Returns
ContentTemplate(Func<Object, Object>)
Declaration
public TimelineBuilder ContentTemplate(Func<object, object> template)
Parameters
Type |
Name |
Description |
System.Func<System.Object, System.Object> |
template |
|
Returns
Created(String)
Event callback that is raised after rendering the timeline.
Declaration
public TimelineBuilder Created(string created)
Parameters
Type |
Name |
Description |
System.String |
created |
|
Returns
CssClass(String)
Defines the CSS class to customize the Timeline appearance.
Declaration
public TimelineBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
EnablePersistence(Boolean)
Enable or disable persisting component's state between page reloads.
Declaration
public TimelineBuilder EnablePersistence(bool enablePersistence = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRtl(Boolean)
Enable or disable rendering component in right to left direction.
Declaration
public TimelineBuilder EnableRtl(bool enableRtl = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRtl |
|
Returns
HtmlAttributes(Object)
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public TimelineBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
Items(Action<TimelineItemBuilder>)
Declaration
public TimelineBuilder Items(Action<TimelineItemBuilder> items)
Parameters
Returns
Items(List<TimelineItem>)
Defines the list of items.
Declaration
public TimelineBuilder Items(List<TimelineItem> items)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<TimelineItem> |
items |
|
Returns
Locale(String)
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public TimelineBuilder Locale(string locale)
Parameters
Type |
Name |
Description |
System.String |
locale |
|
Returns
Orientation(TimelineOrientation)
Defines the orientation type of the Timeline.
Declaration
public TimelineBuilder Orientation(TimelineOrientation orientation)
Parameters
Returns
Render()
Declaration
public HtmlString Render()
Returns
Type |
Microsoft.AspNetCore.Html.HtmlString |
Reverse(Boolean)
Defines whether to show the timeline items in reverse order or not.
Declaration
public TimelineBuilder Reverse(bool reverse = true)
Parameters
Type |
Name |
Description |
System.Boolean |
reverse |
|
Returns
Template(String)
Defines the template content for each timeline item. The template context will contain the item model.
Declaration
public TimelineBuilder Template(string template)
Parameters
Type |
Name |
Description |
System.String |
template |
|
Returns