RayCraftDocs
v1.0.3 raycraft.dev
On this page

CommentThread

Free

Comments with replies, a box for a new comment and Reply and Delete commands. Text is shown as typed (line breaks kept, nothing is treated as HTML).

Example

CommentThread control

Parameters

ParameterTypeDescription
CanDeleteFunc<CommentItem, bool>
ClassstringExtra CSS classes added to the root element.
CurrentUserstring
ItemsIEnumerable<CommentItem>The options to choose from.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxDepthint
MaxLengthintLargest number of characters allowed.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.

Events

EventTypeDescription
OnDeleteEventCallback<CommentItem>Shows a remove button and raises this event when it is clicked.
OnPostEventCallback<CommentPost>

Package

CommentThread is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.