Skip to content
TwitterDiscordGitHub

indicator

The indicator helper block in the template serves as a declarative mechanism for conditionally rendering UI elements based on the current status of a server request, such as 403, "pending", etc.

PropertyTypeDefaultDescriptionRequired
triggerstringThe status that the indicator is showingYes
{{#indicator trigger="pending"}}
<span>Loading...</span>
{{/indicator}}

This helper block is completely based on the indicator attribute.

Only HTML markup. Also, used only within the request helper block.

{{#indicator trigger=403}}
<div>Access error!</div>
<button>Reload page</button>
{{/indicator}}

The trigger property specifies the status condition under which the associated content should be displayed.

{{#indicator trigger="error"}}
<div>Error!</div>
{{/indicator}}

The list of values can be found here.