Home > widget-integration > CountdownTimerController > getTemplate

CountdownTimerController.getTemplate() method

Retrieve the Liquid template string for the countdown timer.

Signature:

protected getTemplate(): string | null;

Returns:

string | null

The template string from TAEAppConfig.template.countdownTimer, or null if not configured (logs a warning).

Example

Override to provide a custom template:

protected getTemplate() {
  return `
    <div class="my-timer" data-campaign-id="{{ campaignId }}">
      <span>{{ hours }}:{{ minutes }}:{{ seconds }}</span>
    </div>
  `;
}