CommentsController

CommentsController

Stimulus controller to initialise Commento to allow users to view and make comments.

Constructor

new CommentsController()

Source:

Extends

  • Controller

Members

(static) targets

Source:
Properties:
Name Type Description
load function

targets the button to load comments

commento function

targets the div to initialise Commento

Methods

load() → {void}

Source:

Triggered by a click event.

Hides the button for loading comments.

Adds top margin to the Commneto block and initialises Commento

Returns:

N/A

Type
void