mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
add JSDocs
This commit is contained in:
parent
d964704752
commit
6b95fb6db0
2 changed files with 26 additions and 6 deletions
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue