aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-11-03 14:45:23 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-11-03 14:47:13 +0800
commit9d9fb5652086dad99f9b0f4b32b57b49568a5ead (patch)
tree4fac2ff4da3be9a79f36324b2f57c0dd6f045cad
parent8e5ebb81391da0bf7a072791f695d38880b36193 (diff)
docs: js-doc
-rw-r--r--src/MenuItem.mjs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs
index 8bee5c1..e5ff27a 100644
--- a/src/MenuItem.mjs
+++ b/src/MenuItem.mjs
@@ -86,6 +86,11 @@ export const Folder = ({ id, text, innerHTML, items, style }) => {
86 return folder 86 return folder
87} 87}
88 88
89/**
90 * simplePlaceholder.
91 *
92 * @param {String} text
93 */
89export const simplePlaceholder = (text) => Item({ 94export const simplePlaceholder = (text) => Item({
90 text, 95 text,
91 style: 'width: fit-content; margin: 0 auto; color: gray; pointer-events: none; font-size: 0.8rem; line-height: 1; font-weight: bolder;', 96 style: 'width: fit-content; margin: 0 auto; color: gray; pointer-events: none; font-size: 0.8rem; line-height: 1; font-weight: bolder;',