Class InternalDragAndDropSpacer
For Material.Blazor internal use only.
public class InternalDragAndDropSpacer : ComponentFoundation, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
InternalDragAndDropSpacer
- Implements
- Inherited Members
Constructors
InternalDragAndDropSpacer()
public InternalDragAndDropSpacer()
Properties
AutospaceContent
Gives the separator a distinct with for use between cards.
[Parameter]
public bool AutospaceContent { get; set; }
Property Value
DropNotifier
Action called when item is dropped on this spacer.
[Parameter]
public Func<int, Task> DropNotifier { get; set; }
Property Value
Index
The spacer's index.
[Parameter]
public int Index { get; set; }
Property Value
ShowDropZone
True to show the drop zone.
[Parameter]
public bool ShowDropZone { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnAfterRenderAsync(bool)
Material.Blazor components generally should not override this because it handles the case where components need
to be adjusted when inside an MBDialog
or MBCard
.
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
bool
Returns
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.
protected override Task OnInitializedAsync()
Returns
OnParametersSetAsync()
When overriding this, call await base.OnParametersSetAsync();
before any user code unless there is a very good reason not to.
protected override Task OnParametersSetAsync()