add JSDocs

This commit is contained in:
Moritz Bischof 2021-05-03 19:50:55 +02:00
commit 6b95fb6db0
2 changed files with 26 additions and 6 deletions

View file

@ -4,16 +4,26 @@
/**
* Set to `true` to open the menu
* Either `x` and `y` must be greater than zero
* @type {boolean}
*/
export let open = false;
/** Specify the horizontal offset of the menu position */
/**
* Specify the horizontal offset of the menu position
* @type {number}
*/
export let x = 0;
/** Specify the vertical offset of the menu position */
/**
* Specify the vertical offset of the menu position
* @type {number}
*/
export let y = 0;
/** Obtain a reference to the unordered list HTML element */
/**
* Obtain a reference to the unordered list HTML element
* @type {HTMLUListElement | null}
*/
export let ref = null;
import { getContext } from "svelte";

View file

@ -2,16 +2,26 @@
/**
* Set to `true` to open the menu
* Either `x` and `y` must be greater than zero
* @type {boolean}
*/
export let open = false;
/** Specify the horizontal offset of the menu position */
/**
* Specify the horizontal offset of the menu position
* @type {number}
*/
export let x = 0;
/** Specify the vertical offset of the menu position */
/**
* Specify the vertical offset of the menu position
* @type {number}
*/
export let y = 0;
/** Obtain a reference to the unordered list HTML element */
/**
* Obtain a reference to the unordered list HTML element
* @type {HTMLUListElement | null}
*/
export let ref = null;
import {