Skip to content

Commit abfdb2d

Browse files
authored
Update taglist.md
1 parent 0424d4a commit abfdb2d

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

docs/taglist.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,44 @@ Initializes UltraHTML functionality:
4242
- Adds wave ripple effects on `.ultra-button.button-wave` clicks
4343
- Enables navigation for elements with `[ultra-href]` attribute (skips disabled)
4444
- Enables chip dismissal on click (except `.chip-permanent`)
45-
- Enables toggle class on click using `ultra-toggle-class`
45+
- Enables toggle class on click using `ultra-toggle-class`
46+
- Enables use of dropdowns
4647

4748
---
4849

4950
### `Ultra.popupmsg(text, allowHTML = false)`
5051
Displays a popup toast message.
5152

53+
> [!IMPORTANT]
54+
> Ultra.popupmsg will throw an Error if text is not set.
55+
5256
- `text` — String content for the popup
5357
- `allowHTML`*(Optional)* If `true`, renders `text` as HTML
5458

59+
### `Ultra.modalmodal({ head = "Modal", text = "" })`
60+
Displays a full-screen modal.
61+
62+
- `head` — Modal header (Defaults to "Modal")
63+
- `text` — Modal text (Defaults to "")
64+
65+
### `Ultra.switch.state(el)`
66+
Returns the state of the switch (boolean)
67+
68+
- `el` — Switch element (input)
69+
70+
### `Ultra.switch.toggle(el)`
71+
Toggles the switch (el)
72+
73+
- `el` — Switch element (input)
74+
5575
---
5676

5777
## 🏷️ UltraHTML Attributes
5878

5979
- `ultra-href` — Navigate to a URL when clicked
60-
- `ultra-toggle-class="className"` — Toggles a class on the clicked element
80+
- `ultra-toggle-class="className"` — Toggles a class ("className") when the element is clicked
6181

6282
---
6383

84+
> [!NOTE]
6485
> 💡 **Pro Tip:** Keep this list handy when using or extending UltraHTML!

0 commit comments

Comments
 (0)