onCommentCountChange( )


Adds an event handler that runs when a comment is added or removed from the WixComments element.

The onCommentCountChange() function adds an event handler that runs when a comment is added or removed from the WixComments element.

Method Declaration
Copy
Method Parameters
callbackfunctionRequired

callback(count: number): void The callback function that runs when a comment is added or removed from the WixComments element.

Did this help?