highlight: Highlight & Initialise

Description Usage Arguments Position

View source: R/highlight.R

Description

Initialise and highlight an element.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
highlight(
  el,
  id,
  title = NULL,
  description = NULL,
  position = NULL,
  class = NULL,
  show_btns = NULL,
  close_btn_text = NULL,
  next_btn_text = NULL,
  prev_btn_text = NULL,
  session = NULL
)

initialise(
  id,
  animate = TRUE,
  opacity = 0.75,
  padding = 10,
  allow_close = TRUE,
  overlay_click_next = FALSE,
  done_btn_text = "Done",
  close_btn_text = "Close",
  stage_background = "#ffffff",
  next_btn_text = "Next",
  prev_btn_text = "Previous",
  show_btns = TRUE,
  keyboard_control = TRUE,
  session = NULL
)

Arguments

el

Id of element to be highlighted.

id

Unique identifier of cicerone.

title

Title on the popover.

description

Body of the popover.

position

Where to position the popover. See positions section.

class

className to wrap this specific step popover in addition to the general className in Driver options.

show_btns

Do not show control buttons in footer.

close_btn_text

Text on the close button for this step.

next_btn_text

Next button text for this step.

prev_btn_text

Previous button text for this step.

session

A valid Shiny session if NULL the function attempts to get the session with shiny::getDefaultReactiveDomain().

animate

Whether to animate or not.

opacity

Background opacity (0 means only popovers and without overlay).

padding

Distance of element from around the edges.

allow_close

Whether the click on overlay should close or not.

overlay_click_next

Whether the click on overlay should move next.

done_btn_text

Text on the final button.

stage_background

Background color for the staged behind highlighted element.

keyboard_control

Allow controlling through keyboard (escape to close, arrow keys to move).

Position


cicerone documentation built on Jan. 11, 2021, 1:35 a.m.