ch_out: codehover output

Description Usage Arguments Value

View source: R/CodeHover_functions.R

Description

codehover define image holder linked to the table and controls some HTML atributes of this element.

Usage

1
2
3
4
5
6
7
8
9
ch_out(
  .data = "",
  img = "",
  css_class = "",
  url = FALSE,
  img_tag_add = "",
  div_tag_add = "",
  ...
)

Arguments

.data

Codehover object (text string) created by ch_row.

img

(string) Image to be show in the image holder prior to any hover interaction.If url = TRUE the img should be a url link to a image.

css_class

(string) Pass a CSS class name here as text to style the image holder.

url

(string) Default FALSE, if TRUE indicates that the image is hosted somewhere else and it should not be embeded in the HTML page via base64.

img_tag_add

(string) Aditional html parameter for img tag

div_tag_add

(string) Aditional html parameter for div tag (container)

...

Adicional paramethers

Value

A HTML table as string ready to be passed to htmltools::HMTL and be render as a hoverale table in the page.


arthurwelle/codehover documentation built on Dec. 19, 2021, 4:43 a.m.