Class MBDragAndDropList<TItem>
A list of user provided render fragments that can be re-ordered with drag and drop.
public class MBDragAndDropList<TItem> : InputComponent<List<TItem>>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
TItem
- Inheritance
-
InputComponent<List<TItem>>MBDragAndDropList<TItem>
- Implements
- Inherited Members
Constructors
MBDragAndDropList()
public MBDragAndDropList()
Properties
Content
Render fragment for each displayable item.
[Parameter]
public RenderFragment<TItem> Content { get; set; }
Property Value
- RenderFragment<TItem>
DisplayCards
Displays each list item in cards if true.
[Parameter]
public bool DisplayCards { get; set; }
Property Value
GetKeysFunc
A function delegate to return the parameters for @key
attributes. If unused
"fake" keys set to GUIDs will be used.
[Parameter]
public Func<TItem, object> GetKeysFunc { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnInitializedAsync()
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()