Class HeadlessDisclosureButton
Inherited Members
Namespace: Neon.Tailwind
Assembly: Neon.Tailwind.dll
Syntax
public class HeadlessDisclosureButton : HtmlElement
Properties
CascadedDisclosure
Declaration
[CascadingParameter]
public HeadlessDisclosure CascadedDisclosure { get; set; }
Property Value
Type | Description |
---|---|
HeadlessDisclosure |
Disclosure
Declaration
protected HeadlessDisclosure Disclosure { get; set; }
Property Value
Type | Description |
---|---|
HeadlessDisclosure |
IsEnabled
Declaration
[Parameter]
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
HandleClick()
Declaration
public void HandleClick()
OnInitializedAsync()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task | A Task representing any asynchronous operation. |
Overrides
SetParametersAsync(ParameterView)
Sets parameters supplied by the component's parent in the render tree.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | A Task that completes when the component has finished updating and rendering itself. |
Overrides
Remarks
Parameters are passed when SetParametersAsync(ParameterView) is called. It is not required that the caller supply a parameter value for all of the parameters that are logically understood by the component.
The default implementation of SetParametersAsync(ParameterView) will set the value of each property decorated with ParameterAttribute or CascadingParameterAttribute that has a corresponding value in the ParameterView. Parameters that do not have a corresponding value will be unchanged.