Welcome to shinyTooltips! This file helps you navigate all available resources.
- Read: QUICKSTART.md
- Copy one example and run it
- Done!
- Open: Interactive HTML Guide
- Read "Getting Started" section
- Run: Comprehensive Example App
- Open: Interactive HTML Guide
- Use "API Reference" section
- Search for your question in FAQ
- Run: Comprehensive Example App
- Find similar example
- Copy and adapt code
- Refer to Best Practices
| File | Purpose | Time |
|---|---|---|
| README.md | Package overview & quick links | 5 min |
| QUICKSTART.md | Installation & first steps | 5 min |
| Getting Started in HTML Guide | Interactive tutorial | 15 min |
| File | Purpose | Time |
|---|---|---|
| DOCUMENTATION.md | Complete technical guide | 30 min |
| Interactive HTML Guide | Comprehensive resource guide | 1 hour |
| COMPREHENSIVE_DELIVERABLES.md | Guide overview & comparison | 10 min |
| File | Purpose | Time |
|---|---|---|
| ENHANCEMENT_SUMMARY.md | v0.2.0 new features | 10 min |
| PROJECT_FINAL_STATUS.md | Project completion summary | 15 min |
| INDEX.md | Previous guide (deprecated) | - |
Located in: inst/examples/
| App | Features Shown | Complexity | Time |
|---|---|---|---|
| simple_example.R | Basic button tooltip | Beginner | 2 min |
| test_app.R | Quick functionality test | Beginner | 2 min |
| demo_app.R | Placement, trigger, animation | Intermediate | 10 min |
| advanced_demo.R | Sizing, styling, rich content | Intermediate | 15 min |
| interactive_demo.R | Interactive tooltips with forms | Advanced | 20 min |
| quick_test_enhanced.R | v0.2.0 enhanced features | Intermediate | 5 min |
| comprehensive_guide.R | ALL features in one app ⭐ | Complete | 30 min |
Location: inst/www/guide.html
Sections:
- Overview - What is shinyTooltips?
- Getting Started - Installation & setup
- API Reference - Complete parameter documentation
- Examples - 6 working code examples
- Best Practices - 40+ guidelines
- FAQ & Troubleshooting - 6 Q&A + 4 solutions
Features:
- ✅ No R required - works in any browser
- ✅ Copy-to-clipboard code examples
- ✅ Mobile responsive
- ✅ Offline accessible
- ✅ Standalone (no dependencies)
How to Open:
# In R
browseURL(system.file("www/guide.html", package = "shinyTooltips"))
# Or just navigate to the file and open in browseruse_shiny_tooltips()
- Initialize tooltips in your Shiny UI
- Optional: customize global theme
- See documentation
tooltip()
- Attach a tooltip to an element
- 12 customization parameters
- Call BEFORE the target element in UI
- See API reference
tooltip(
target = "elementID", # Required: element to tooltip
content = "Help text", # Required: tooltip content
placement = "top", # Where: top/bottom/left/right
trigger = "hover", # How: hover/click/focus
animation = "fade", # Style: fade/scale
delay = 0, # Milliseconds before showing
offset = 10, # Distance from target (px)
size = "medium", # small/medium/large/auto
width = NULL, # Fixed width (e.g., "350px")
maxWidth = NULL, # Max width (e.g., "500px")
style = NULL, # Custom CSS styles
interactive = FALSE # Allow interaction in tooltip
)Setup & Installation
- README.md - Download & installation
- QUICKSTART.md - First steps
- Getting Started (HTML Guide) - Detailed setup
API Documentation
- API Reference (HTML Guide) - Parameter reference ⭐ START HERE
- DOCUMENTATION.md - Full technical guide
- Examples (HTML Guide) - 6 working examples
Learning Examples
- Comprehensive Guide App - Interactive demo ⭐ MOST COMPREHENSIVE
- Example Apps - Various demonstration apps
- Examples Section (HTML Guide) - Code snippets
Best Practices & Troubleshooting
- Best Practices (HTML Guide) - 40+ guidelines
- FAQ & Troubleshooting (HTML Guide) - Common questions
- DOCUMENTATION.md - Detailed explanations
Feature Information
- README.md - Feature highlights
- ENHANCEMENT_SUMMARY.md - v0.2.0 features
- PROJECT_FINAL_STATUS.md - What's included
- Check
inst/www/shinyTooltips.js- Pure JavaScript implementation - Read the JavaScript section
- Explore
inst/www/shinyTooltips.css- CSS architecture
- Read QUICKSTART.md - R-focused intro
- Check
R/tooltip.R- R function source - Review API Reference
- Open Interactive HTML Guide
- Run Comprehensive Example App
- Copy patterns from example apps
- Run Comprehensive Example App - See it in action
- Read Best Practices - Design guidelines
- Check DOCUMENTATION.md - Styling section
- Find similar example in example apps
- Copy and paste the code
- Modify for your use case
- Refer to FAQ if issues
| Goal | Resource |
|---|---|
| Get started quickly | QUICKSTART.md |
| See all features | Comprehensive Example App |
| Learn step-by-step | Getting Started in HTML Guide |
| Look up parameters | API Reference in HTML Guide |
| See working examples | Examples in HTML Guide |
| Follow best practices | Best Practices in HTML Guide |
| Fix a problem | FAQ in HTML Guide |
| Understand architecture | DOCUMENTATION.md |
| Know what's new | ENHANCEMENT_SUMMARY.md |
| Check project status | PROJECT_FINAL_STATUS.md |
Before implementing, make sure you know about these features:
- 4 Placements - top, bottom, left, right
- 3 Triggers - hover, click, focus
- 2 Animations - fade, scale
- 4 Sizes - small, medium, large, auto
- Custom Sizing - width, maxWidth parameters
- Custom Styling - Apply CSS to individual tooltips
- Rich Content - Use tagList for complex content
- Interactive Mode - Tooltips with inputs and forms
- Theme Customization - Global default styling
- Responsive - Mobile friendly, viewport-aware
- Accessibility - WCAG compliant, keyboard navigation
See Feature Overview for details.
- Responsive design
- Works on touch devices
- Viewport-aware positioning
- Mobile-friendly triggers
See: Best Practices - Mobile Considerations
- Keyboard navigation support
- Focus trigger for inputs
- High contrast colors
- WCAG compliance
See: Best Practices - Accessibility
| Issue | Solution |
|---|---|
| Tooltip not showing | Check FAQ #1 |
| HTML not rendering | Check FAQ #3 |
| Styling not working | Check FAQ #6 |
| Interactive not working | See Troubleshooting |
| Mobile issues | See Mobile Considerations |
More help: See Troubleshooting Guide in HTML guide.
- For setup issues → Read QUICKSTART.md
- For API questions → Check API Reference
- For common problems → See FAQ
- For guidance → Review Best Practices
- For examples → Check example apps in
inst/examples/ - For deep dive → Read DOCUMENTATION.md
- This file (you are here)
- README.md - Overview
- QUICKSTART.md - Get going
- Interactive HTML Guide - Getting Started
- API Reference - Know the parameters
- Examples - See how it's done
- Best Practices - Do it right
- Comprehensive Example App - See it live
- Interactive HTML Guide - Quick lookup
- API Reference - Parameter details
- FAQ - Common questions
- Help Text on Inputs: Use
trigger = "focus",placement = "right" - Button Hints: Use
trigger = "hover", default placement - Important Info: Use
trigger = "click", higher visibility styling - Interactive Forms: Use
interactive = TRUE,trigger = "click"
- Keep tooltip content brief (1-2 lines)
- Use size variants for appropriate dimensions
- Set reasonable delays to prevent flickering
- Test on real devices before deployment
- Use theme parameter for global consistency
- Apply consistent colors across tooltips
- Ensure sufficient color contrast
- Test at 200% zoom for accessibility
See Best Practices for full guidelines.
shinyTooltips/
├── README.md # Package overview
├── QUICKSTART.md # Getting started (5 min)
├── DOCUMENTATION.md # Full documentation
├── ENHANCEMENT_SUMMARY.md # v0.2.0 features
├── PROJECT_FINAL_STATUS.md # Completion summary
├── COMPREHENSIVE_DELIVERABLES.md # Guide overview
├── GUIDE_INDEX.md # This file
│
├── R/
│ └── tooltip.R # Core R functions (273 lines)
│
├── inst/
│ ├── www/
│ │ ├── shinyTooltips.js # JavaScript engine (358 lines)
│ │ ├── shinyTooltips.css # Styling (213 lines)
│ │ └── guide.html # Interactive HTML guide ⭐
│ │
│ └── examples/
│ ├── simple_example.R # Basic example
│ ├── test_app.R # Quick test
│ ├── demo_app.R # Feature demo
│ ├── advanced_demo.R # Advanced features
│ ├── interactive_demo.R # Interactive mode
│ ├── quick_test_enhanced.R # v0.2.0 test
│ └── comprehensive_guide.R # Complete guide ⭐
│
└── [Config files]
├── DESCRIPTION
├── NAMESPACE
├── LICENSE
└── .Rbuildignore
⭐ = Most important resources for learning
You now have access to:
- ✅ Complete tooltip library
- ✅ Interactive HTML guide
- ✅ Comprehensive example app
- ✅ 6 additional example apps
- ✅ Complete documentation
- ✅ Best practices guide
- ✅ FAQ & troubleshooting
Next step: Pick your learning path above and get started!
- Read the appropriate documentation from this guide
- Check the FAQ section in the HTML guide
- Review similar examples in the example apps
- Refer to Best Practices for guidance
Happy coding! 🚀
shinyTooltips v0.2.0 | Last Updated: 2024 | GitHub