Skip to content

Commit

Permalink
Fixing JSDoc for tooltip API
Browse files Browse the repository at this point in the history
  • Loading branch information
khalidadil committed Jul 14, 2023
1 parent 86a2384 commit aa699cb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/api/tooltips/ToolTipAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TooltipAPI {
}

/**
* private
* @private for platform-internal use
*/
showTooltip(tooltip) {
for (let i = this.activeToolTips.length - 1; i > -1; i--) {
Expand All @@ -67,12 +67,17 @@ class TooltipAPI {
}

/**
* A description of option properties that can be passed into the overlay
* @typedef options
* A description of option properties that can be passed into the tooltip
* @typedef {Object} TooltipOptions
* @property {string} tooltipText text to show in the tooltip
* @property {TOOLTIP_LOCATIONS} tooltipLocation location to show the tooltip relative to the parentElement
* @property {HTMLElement} parentElement reference to the DOM node we're adding the tooltip to
*/

/**
* Tooltips take an options object that consists of the string, tooltipLocation, and parentElement
* @param {TooltipOptions} options
*/
tooltip(options) {
let tooltip = new Tooltip(options);

Expand Down

0 comments on commit aa699cb

Please sign in to comment.