Class HeadlessSwitch
Inheritance
HeadlessSwitch
Assembly: Neon.Tailwind.dll
Syntax
public class HeadlessSwitch : ComponentBase
Properties
AdditionalAttributes
Declaration
[Parameter(CaptureUnmatchedValues = true)]
public IReadOnlyDictionary<string, object> AdditionalAttributes { get; set; }
Property Value
Checked
Declaration
[Parameter]
public bool Checked { get; set; }
Property Value
CheckedChanged
Declaration
[Parameter]
public EventCallback<bool> CheckedChanged { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
CurrentChecked
Declaration
protected bool CurrentChecked { get; set; }
Property Value
Group
Declaration
[CascadingParameter]
public HeadlessSwitchGroup Group { get; set; }
Property Value
Id
Declaration
[Parameter]
public string Id { get; set; }
Property Value
IsEnabled
Declaration
[Parameter]
public bool IsEnabled { get; set; }
Property Value
TagName
Declaration
[Parameter]
public string TagName { get; set; }
Property Value
Methods
HandleClick()
Declaration
public void HandleClick()
OnInitialized()
Method invoked when the component is ready to start, having received its
initial parameters from its parent in the render tree.
Declaration
protected override void OnInitialized()
Overrides
Toggle()
Declaration