Table of Contents

Class InternalDragAndDropSpacer

Namespace
Material.Blazor.Internal
Assembly
Material.Blazor.dll

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

bool

DropNotifier

Action called when item is dropped on this spacer.

[Parameter]
public Func<int, Task> DropNotifier { get; set; }

Property Value

Func<int, Task>

Index

The spacer's index.

[Parameter]
public int Index { get; set; }

Property Value

int

ShowDropZone

True to show the drop zone.

[Parameter]
public bool ShowDropZone { get; set; }

Property Value

bool

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

Task

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

Task

A Task representing any asynchronous operation.

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()

Returns

Task