Class MBBladeComponent<TParam>
A component added to a blade via AddBladeAsync<TComponent, TParameters>(String, TParameters, String, String, Action<String>) must implement this interface.
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public abstract class MBBladeComponent<TParam> : ComponentBase where TParam : MBBladeComponentParameters
Type Parameters
Name | Description |
---|---|
TParam |
Properties
| Improve this Doc View SourceBladeReference
The blade reference provided by the calling consumer
Declaration
public string BladeReference { get; set; }
Property Value
Type | Description |
---|---|
String |
BladeSet
The BladeSet is provided as a cascading value
Declaration
protected MBBladeSet BladeSet { get; set; }
Property Value
Type | Description |
---|---|
MBBladeSet |
IsOpen
Indicates whether the blade is open.
Declaration
public bool IsOpen { get; }
Property Value
Type | Description |
---|---|
Boolean |
Parameters
Parameters for a blade are held in this parameter, which is a class inheriting MBBladeComponentParameters.
Declaration
public TParam Parameters { get; set; }
Property Value
Type | Description |
---|---|
TParam |
Methods
| Improve this Doc View SourceCloseBladeAsync()
A utility function to close the blade, calling RemoveBladeAsync(String), passing the blade reference.
Declaration
public Task CloseBladeAsync()
Returns
Type | Description |
---|---|
Task |