Comments component
Example

Variables
Comments
comments
array[object (Comments) {10}]
optional
comments.next_page
id
integer
optional
avatar
string
optional
name
string
optional
has_order
boolean
optional
created_at
string <date>
optional
Example:
dd/mm/yyyy
stars
integer
optional
content
string
optional
is_pending
boolean
optional
replies
array[object (Comments) {10}]
optional
type
enum<string>
optional
Allowed values:
admincustomer
type
enum<string>
optional
Allowed values:
pageproduct
id
enum<integer>
optional
Allowed values:
pageIdProductId
Usage
salla-button
.
salla-infinite-scroll
to display the comments in a for-loop
. It will also display the comments' details such as name
, avatar
, has-order
, rating star
, created date
, comment content
and checks if the user type
is admin. As shown in the below code.
Modified at 2025-03-04 12:54:02