Class MBBladeComponent<TParam>
A component added to a blade via AddBladeAsync<TComponent, TParameters>(string, TParameters, string, string, Action<string>) must implement this interface.
public abstract class MBBladeComponent<TParam> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender where TParam : MBBladeComponentParameters
Type Parameters
TParam
- Inheritance
-
MBBladeComponent<TParam>
- Implements
- Inherited Members
Constructors
MBBladeComponent()
protected MBBladeComponent()
Properties
BladeReference
The blade reference provided by the calling consumer
[Parameter]
public string BladeReference { get; set; }
Property Value
BladeSet
The BladeSet is provided as a cascading value
[CascadingParameter]
protected MBBladeSet BladeSet { get; set; }
Property Value
IsOpen
Indicates whether the blade is open.
public bool IsOpen { get; }
Property Value
Parameters
Parameters for a blade are held in this parameter, which is a class inheriting MBBladeComponentParameters.
[Parameter]
public TParam Parameters { get; set; }
Property Value
- TParam
Methods
CloseBladeAsync()
A utility function to close the blade, calling RemoveBladeAsync(string), passing the blade reference.
public Task CloseBladeAsync()