Skip to main content
All docs
V25.1
  • DxSankey.Enabled Property

    Specifies whether the Sankey component responds to user interaction.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(true)]
    [Parameter]
    public bool Enabled { get; set; }

    Property Value

    Type Default Description
    Boolean true

    false to disable the component; otherwise, true.

    Remarks

    Set the Enabled property to false to disable the Sankey component. When disabled, the component ignores custom color settings and does not respond to user interaction.

    <DxSankey Data="@Data"
              Width="100%"
              Height="440px"
              SourceFieldName="Source"
              TargetFieldName="Target"
              WeightFieldName="Weight"
              Enabled="false">
        <DxSankeyNodeSettings Width="8" Spacing="30" />
        <DxTitleSettings Text="Commodity Turnover" />
    </DxSankey>
    
    @code {
        IEnumerable<SankeyDataPoint> Data = Enumerable.Empty<SankeyDataPoint>();
        protected override void OnInitialized() {
            Data = GenerateData();
        }
    }
    
    See Also