This documentation site is about the unstable (upcoming) Comentario version.  Switch to the stable version »

Attribute: placeholder

The placeholder attribute of the <comentario-count> tag specifies the initial content of the element

The placeholder attribute of the count tag can be used to specify the text initially displayed in the element.

  • If placeholder is omitted, the count widget will initially be empty, but if it has a value, the widget will display it instead.
  • As soon as the server request has finished, the widget will display:
    • the number of comments, if succeeded, or
    • the text denoted by the error-text attribute, if the request failed.

Example

<p>This page has <comentario-count placeholder="[loading]"></comentario-count> comment(s).</p>

See also