Files
shaka-player/demo/tooltip.js
T
michellezhuo 81a487aae3 build: add goog.require for compiler upgrade (Part 6)
Change-Id: I9b92f9432a8d6bfe0d9d48c76ab1ce74a9994e0f
2020-10-16 16:10:20 -07:00

32 lines
720 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shakaDemo.Tooltips');
goog.requireType('shakaDemo.MessageIds');
/**
* Creates and contains a tooltip.
*/
shakaDemo.Tooltips = class {
/**
* @param {!Element} labeledElement
* @param {shakaDemo.MessageIds} message
*/
static make(labeledElement, message) {
tippy(labeledElement, {
content: shakaDemoMain.getLocalizedString(message),
placement: 'bottom',
arrow: true,
animation: 'scale',
size: 'large',
});
// TODO: The tooltip should be unreadable by screen readers, and this
// tooltip info should instead be encoded into the object.
}
};