New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI Sankey

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SankeyBuilder : WidgetBuilderBase<Sankey, SankeyBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Sankey, SankeyBuilder>SankeyBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<Sankey, SankeyBuilder>.ToComponent()WidgetBuilderBase<Sankey, SankeyBuilder>.Expression(string)WidgetBuilderBase<Sankey, SankeyBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<Sankey, SankeyBuilder>.Name(string)WidgetBuilderBase<Sankey, SankeyBuilder>.Deferred(bool)WidgetBuilderBase<Sankey, SankeyBuilder>.HtmlAttributes(object)WidgetBuilderBase<Sankey, SankeyBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Sankey, SankeyBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<Sankey, SankeyBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Sankey, SankeyBuilder>.Render()WidgetBuilderBase<Sankey, SankeyBuilder>.ToHtmlString()WidgetBuilderBase<Sankey, SankeyBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Sankey, SankeyBuilder>.ToClientTemplate()WidgetBuilderBase<Sankey, SankeyBuilder>.AsModule(bool)WidgetBuilderBase<Sankey, SankeyBuilder>.ComponentWidgetBuilderBase<Sankey, SankeyBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the SankeyBuilder class.

C#
public SankeyBuilder(Sankey component)
Parameters:componentSankey

Methods

The data of the Sankey. The data object contains the Sankey nodes and links configuration.

C#
public SankeyBuilder Data(Action<SankeyDataSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyDataSettingsBuilder>

The SankeyDataSettingsBuilder for the data setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

If set to true, the Sankey will not automatically reorder the nodes to reduce the number of links that cross over each other.

C#
public SankeyBuilder DisableAutoLayout()
Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

If set to true, the Sankey will not automatically reorder the nodes to reduce the number of links that cross over each other.

C#
public SankeyBuilder DisableAutoLayout(bool value)
Parameters:valuebool

The value for DisableAutoLayout

Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

If set to true, the Sankey keyboard navigation will be disabled.

C#
public SankeyBuilder DisableKeyboardNavigation()
Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

If set to true, the Sankey keyboard navigation will be disabled.

C#
public SankeyBuilder DisableKeyboardNavigation(bool value)
Parameters:valuebool

The value for DisableKeyboardNavigation

Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

Configures the client-side events.

C#
public SankeyBuilder Events(Action<SankeyEventBuilder> configurator)
Parameters:configuratorAction<SankeyEventBuilder>

The client events action.

Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

Example:
C#
@(Html.Kendo().Sankey()
.Name("Sankey")
.Events(events =&gt; events
.LinkClick("onLinkClick")
)
)

The default labels configuration of the Sankey. The labels configuration options will be overridden by the data.nodes.label configuration.

C#
public SankeyBuilder Labels(Action<SankeyLabelsSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLabelsSettingsBuilder>

The SankeyLabelsSettingsBuilder for the labels setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The legend configuration options of the Sankey.

C#
public SankeyBuilder Legend(Action<SankeyLegendSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendSettingsBuilder>

The SankeyLegendSettingsBuilder for the legend setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The default links configuration of the Sankey. The links configuration options will be overridden by the data.links configuration.

C#
public SankeyBuilder Links(Action<SankeyLinksSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLinksSettingsBuilder>

The SankeyLinksSettingsBuilder for the links setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The configuration of the messages displayed in the Sankey.

C#
public SankeyBuilder Messages(Action<SankeyMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyMessagesSettingsBuilder>

The SankeyMessagesSettingsBuilder for the messages setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The default nodes configuration of the Sankey. The nodes configuration options will be overridden by the data.nodes configuration.

C#
public SankeyBuilder Nodes(Action<SankeyNodesSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyNodesSettingsBuilder>

The SankeyNodesSettingsBuilder for the nodes setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The Theme configuration options.

C#
public SankeyBuilder Theme(string theme)
Parameters:themestring

The theme name.

Returns:

SankeyBuilder

Returns the current SankeyBuilder instance.

The Sankey title configuration options.

C#
public SankeyBuilder Title(Action<SankeyTitleSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyTitleSettingsBuilder>

The SankeyTitleSettingsBuilder for the title setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .

The tooltip configuration options.

C#
public SankeyBuilder Tooltip(Action<SankeyTooltipSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyTooltipSettingsBuilder>

The SankeyTooltipSettingsBuilder for the tooltip setting.

Returns:

SankeyBuilder

Returns the current instance of SankeyBuilder .