shiny observer handling button clicks.When the button is clicked it pop up a modal window with the text.
button_click_observer(
click_event,
copy_button_id,
copied_area_id,
modal_title,
modal_content,
disabled
)reactive the click event
(character(1)) the id of the button to copy the modal content.
Automatically appended with a 1 and 2 suffix for top and bottom buttons respectively.
(character(1)) the id of the element which contents are copied
(character(1)) the title of the modal window
(reactive) the content of the modal window
(reactive(1)) the shiny reactive value holding a logical. The popup button is disabled
when the flag is TRUE and enabled otherwise.