Class HeadlessDisclosurePanel
Inherited Members
Namespace: Neon.Tailwind
Assembly: Neon.Tailwind.dll
Syntax
public class HeadlessDisclosurePanel : 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
Whether the disclosure panel is enabled.
Declaration
[Parameter]
public bool IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsVisible
Whether the disclosure panel is visible.
Declaration
[Parameter]
public bool? IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Transition
Declaration
[CascadingParameter]
public Transition Transition { get; set; }
Property Value
| Type | Description |
|---|---|
| Transition |
Methods
Close()
Declaration
public Task Close()
Returns
| Type | Description |
|---|---|
| Task |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
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
Open()
Declaration
public Task Open()
Returns
| Type | Description |
|---|---|
| Task |
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.