Blazor

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfSwitch<TChecked> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SfSwitch<TChecked>

    The Switch is a graphical user interface element that allows you to toggle between checked and unchecked states.

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    SfInputBase<TChecked>
    SfSwitch<TChecked>
    Inherited Members
    SfInputBase<TChecked>.input
    SfInputBase<TChecked>.rippleElement
    SfInputBase<TChecked>.id
    SfInputBase<TChecked>.htmlAttributes
    SfInputBase<TChecked>.OnParametersSetAsync()
    SfInputBase<TChecked>.OnAfterRenderAsync(Boolean)
    SfInputBase<TChecked>.FocusIn()
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.Click()
    SfInputBase<TChecked>.ID
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.ChildContent
    SfInputBase<TChecked>.CssClass
    SfInputBase<TChecked>.Name
    SfInputBase<TChecked>.Value
    SfInputBase<TChecked>.Checked
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.CheckedChanged
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.CheckedExpression
    SfInputBase<TChecked>.Disabled
    SfInputBase<TChecked>.EnableRtl
    SfInputBase<TChecked>.EnablePersistence
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.EnableHtmlSanitizer
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.Locale
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.HtmlAttributes
    SfInputBase<TChecked>.Created
    Namespace: Syncfusion.Blazor.Buttons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SfSwitch<TChecked> : SfInputBase<TChecked>
    Type Parameters
    Name Description
    TChecked

    Constructors

    SfSwitch()

    Declaration
    public SfSwitch()

    Properties

    OffLabel

    Specifies a text that indicates the Switch is in unchecked state.

    Declaration
    public string OffLabel { get; set; }
    Property Value
    Type Description
    System.String

    OnLabel

    Specifies a text that indicates the Switch is in checked state.

    Declaration
    public string OnLabel { get; set; }
    Property Value
    Type Description
    System.String

    ValueChange

    Triggers when Switch state has been changed by user interaction.

    Declaration
    public EventCallback<ChangeEventArgs<TChecked>> ValueChange { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ChangeEventArgs<TChecked>>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    InitRender()

    Declaration
    protected override void InitRender()
    Overrides
    Syncfusion.Blazor.Buttons.SfInputBase<TChecked>.InitRender()
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved