useMicroTip {standby} | R Documentation |
MicroTip
Description
Minimal CSS only tooltip.
Usage
useMicroTip()
microTip(
id = NULL,
tip = "Hey! tooltip!",
position = "top",
size = NULL,
session = getDefaultReactiveDomain()
)
Arguments
id |
The id of the element to attach the tooltip. |
tip |
Content of the tooltip. |
position |
Where the tooltip should appear relative to the target element. Defaults to
|
size |
Size of the tooltip. Defaults to
|
session |
Shiny session object. |
Value
None
Functions
-
useMicroTip
: Dependencies to include in your UI. -
microTip
: Add tooltip.
Examples
if (interactive()) {
library(shiny)
library(standby)
ui <- fluidPage(
useMicroTip(), # include dependencies
br(), br(), br(), br(),
actionButton(inputId = "btn",
label = "MicroTip Demo")
)
server <- function(input, output, session) {
# display tooltip
microTip(id = "btn",
tip = "Hey there! This is a micro tip!",
position = "bottom-right")
}
shinyApp(ui, server)
}
[Package standby version 0.1.0 Index]