Skip to content

CommentSubmissionForm

Namespace: SlottyMedia.Components.Partial.PostPage

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

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

Properties

PostId

The ID of the post to submit a comment for.

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

Property Value

Nullable<Guid>

UserId

The UserId of the user to submit the comment for.

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

Property Value

Nullable<Guid>

ViewModel

The ViewModel for this component.

public ICommentSubmissionFormVm ViewModel { get; set; }

Property Value

ICommentSubmissionFormVm

Constructors

CommentSubmissionForm()

public CommentSubmissionForm()

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.