Liveblog Tag Methods

The widget DOM element exposes various API methods. All methods are only available after the tickarooLiveblogInit event has fired. If called before that, they will immediatly throw an error.

Example:

<script async src="https://cdn.tickaroo.com/webng/embedjs/tik4.js"></script>
<tickaroo-liveblog id="my-liveblog" liveblogId="LIVEBLOG_ID" clientId="CLIENT_ID" />

<script>
  function onClickSomeNavigation() {
    document.findElementById('my-liveblog').navigateToEventId('EVENTID');
  }
</script>

Methods are:

Navigates to the specified eventId. Returns a Promise that is resolved when the navigation has finished. The resulting boolean indicates wheather or not navigation was successfully executed.

hasEventId: (eventId) => boolean

Returns true if the specified eventId is part of the currently displayed widget.

loadMoreTop: () => Promise<void>

Manually trigger a “load more” at the top of the widget. The promise is resolved when the load more operation is completed.

loadMoreBottom: () => Promise<void>

Manually trigger a “load more” at the bottom of the widget. The promise is resolved when the load more operation is completed.

Manually activate or deactivate consent to specified third party embed provider.

See Integrated custom consent handling for more details.

setAdManager: (adManager: AdManager) => void

Set an AdManager for inline ads

See Inline Ads for more details.