MCPcopy Create free account
hub / github.com/microsoft/SandDance / Handler

Function Handler

docs/app/js/sanddance-app.js:123256–123261  ·  view source on GitHub ↗

* Create a new Handler instance. * @param {object} [customLoader] - Optional loader instance for * href URL sanitization. If not specified, a standard loader * instance will be generated. * @param {function} [customTooltip] - Optional tooltip handler * function for custom tooltip display.

(customLoader, customTooltip)

Source from the content-addressed store, hash-verified

123254 * function for custom tooltip display.
123255 * @constructor
123256 */ function Handler(customLoader, customTooltip) {
123257 this._active = null;
123258 this._handlers = {};
123259 this._loader = customLoader || (0, _vegaLoader.loader)();
123260 this._tooltip = customTooltip || defaultTooltip;
123261} // The default tooltip display handler.
123262// Sets the HTML title attribute on the visualization container.
123263function defaultTooltip(handler, event, item, value6) {
123264 handler.element().setAttribute("title", value6 || "");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected