Skip to content

Commit 91b86f1

Browse files
committed
Add selector scoping documentation for plugins adding tabs to existing pages
- Add 'Adding Tabs to Existing Pages' section to tab-pages.md - Add 'Scope Your Selectors' best practice to javascript-patterns.md - Add docker-compose-tabs.png screenshot showing Docker/Compose integration - Document common pitfalls when jQuery selectors affect parent page elements
1 parent efde41c commit 91b86f1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
138 KB
Loading

docs/ui/tab-pages.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ TODO: Document the Menu numbering system for related pages
194194

195195
Plugins can add new tabs to existing Unraid pages (like the Docker page) using the `Menu` header in `.page` files. This creates a seamless integrated experience but requires careful attention to avoid conflicts.
196196

197+
![Docker page with Compose tab](../../assets/images/screenshots/docker-compose-tabs.png)
198+
*Example: Compose Manager adds a "Compose" tab to the Docker page*
199+
197200
### Menu Placement
198201

199202
To add a tab to an existing menu, use the menu name with an optional sort order:

0 commit comments

Comments
 (0)