WmmNotification.js

Methods

addNotificationTo(element, html, inside)#

This is a simple UI component for showing notifications of the monetization state. You can modify this component or replace it with your own UI component to give notifications that suit better the style of your application. This notification is positioned on top of the media element in case of video and audio components, and *inside*, at the bottom of the component in case of text.
Parameters:
NameTypeDescription
elementElementthe component in which the notification is attached.
htmlstringthe notification HTML that is shown.
insidebooleanadds notification inside the element as its last child.
Source: