Skip to content

PostSubmissionForm

Namespace: SlottyMedia.Components.Partial.MainLayout

public class PostSubmissionForm : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender

Inheritance Object → ComponentBase → PostSubmissionForm
Implements IComponent, IHandleEvent, IHandleAfterRender

Properties

ViewModel

The ViewModel for this component

public IPostSubmissionFormVm ViewModel { get; set; }

Property Value

IPostSubmissionFormVm

ValueChanged

An event that is invoked whenever this input field's value changes

public EventCallback<string> ValueChanged { get; set; }

Property Value

EventCallback<String>

UserId

The Id of the User

public Nullable<Guid> UserId { get; set; }

Property Value

Nullable<Guid>

Constructors

PostSubmissionForm()

public PostSubmissionForm()

Methods

BuildRenderTree(RenderTreeBuilder)

protected void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

OnAfterRender(Boolean)

Called after the component has been rendered. Fetches user information if it is the first render.

protected void OnAfterRender(bool firstRender)

Parameters

firstRender Boolean
Indicates whether this is the first render