Blazor

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

    Show / Hide Table of Contents

    Class SfInputBase<TChecked>

    A base class for form input components.

    Inheritance
    System.Object
    Syncfusion.Blazor.SfBaseComponent
    SfInputBase<TChecked>
    SfCheckBox<TChecked>
    SfRadioButton<TChecked>
    SfSwitch<TChecked>
    Namespace: Syncfusion.Blazor.Buttons
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public abstract class SfInputBase<TChecked> : SfBaseComponent
    Type Parameters
    Name Description
    TChecked

    Constructors

    SfInputBase()

    Declaration
    protected SfInputBase()

    Fields

    htmlAttributes

    Declaration
    protected Dictionary<string, object> htmlAttributes
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>

    id

    Declaration
    protected string id
    Field Value
    Type Description
    System.String

    input

    Declaration
    protected ElementReference input
    Field Value
    Type Description
    Microsoft.AspNetCore.Components.ElementReference

    rippleElement

    Declaration
    protected ElementReference rippleElement
    Field Value
    Type Description
    Microsoft.AspNetCore.Components.ElementReference

    Properties

    Checked

    Specifies a value that indicates whether the component is checked or not.

    Declaration
    public TChecked Checked { get; set; }
    Property Value
    Type Description
    TChecked

    Created

    Triggers once the component rendering is completed.

    Declaration
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    CssClass

    Defines class/multiple classes separated by a space in the component wrapper element. You can add custom styles to the component by using this property.

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

    Disabled

    Specifies a value that indicates whether the component is disabled or not. When set to true, the component will be in disabled state.

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnablePersistence

    Enable or disable persisting component's state between page reloads.

    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    ID

    Defines id attribute for the input element.

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

    Name

    Defines name attribute for the input element.

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

    Value

    Defines value attribute for the input element.

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

    Methods

    FocusIn()

    Sets the focus to component.

    Declaration
    public Task FocusIn()
    Returns
    Type Description
    System.Threading.Tasks.Task

    InitRender()

    Declaration
    protected virtual void InitRender()

    OnAfterRenderAsync(Boolean)

    Declaration
    protected override Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(System.Boolean)

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved