comment-form Class
Allow users to add comments to a page.
This component is typically used as part of the comment-pane
component; see that component for further information.
Sample usage:
{{comment-form addComment=attrs.addComment}}
Item Index
Methods
Methods
addComment
(
-
text
Call a passed-in closure action to handle submitting a comment. Reset the form if save succeeds.
Parameters:
-
text
StringThe text of the comment to create