Hao Zhu | e10cfd3 | 2017-02-21 16:41:14 -0500 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/htmlTable_styling.R |
| 3 | \name{htmlTable_styling} |
| 4 | \alias{htmlTable_styling} |
| 5 | \title{HTML table attributes} |
| 6 | \usage{ |
Hao Zhu | 2623412 | 2017-02-22 15:34:33 -0500 | [diff] [blame] | 7 | htmlTable_styling(kable_input, bootstrap_options = "basic", full_width = T, |
| 8 | float = c("center", "left", "right"), font_size = NULL) |
Hao Zhu | e10cfd3 | 2017-02-21 16:41:14 -0500 | [diff] [blame] | 9 | } |
| 10 | \arguments{ |
Hao Zhu | 9495658 | 2017-02-21 18:18:29 -0500 | [diff] [blame] | 11 | \item{bootstrap_options}{A character vector for bootstrap table options. For |
| 12 | detailed information, please check the package vignette or visit the |
Hao Zhu | 59f5fe0 | 2017-02-22 11:27:14 -0500 | [diff] [blame] | 13 | w3schools' \href{https://www.w3schools.com/bootstrap/bootstrap_tables.asp}{Bootstrap Page} |
Hao Zhu | 2623412 | 2017-02-22 15:34:33 -0500 | [diff] [blame] | 14 | . Possible options include "basic", "striped", "bordered", "hover", |
Hao Zhu | 9495658 | 2017-02-21 18:18:29 -0500 | [diff] [blame] | 15 | "condensed" and "responsive".} |
Hao Zhu | e10cfd3 | 2017-02-21 16:41:14 -0500 | [diff] [blame] | 16 | |
Hao Zhu | 2623412 | 2017-02-22 15:34:33 -0500 | [diff] [blame] | 17 | \item{full_width}{A `TRUE` or `FALSE` variable controlling whether the HTML |
Hao Zhu | 9495658 | 2017-02-21 18:18:29 -0500 | [diff] [blame] | 18 | table should have 100\% width.} |
| 19 | |
| 20 | \item{float}{A character string determining whether and how the HTML table |
Hao Zhu | 2623412 | 2017-02-22 15:34:33 -0500 | [diff] [blame] | 21 | should float on the page. Values could be "left", "center", "right"} |
Hao Zhu | 9495658 | 2017-02-21 18:18:29 -0500 | [diff] [blame] | 22 | |
| 23 | \item{font_size}{A numeric input for table font size} |
Hao Zhu | e10cfd3 | 2017-02-21 16:41:14 -0500 | [diff] [blame] | 24 | } |
| 25 | \description{ |
Hao Zhu | 2623412 | 2017-02-22 15:34:33 -0500 | [diff] [blame] | 26 | This function provides a cleaner approach to modify the style |
| 27 | of HTML tables other than using the `table.attr` option in `knitr::kable()`. |
| 28 | Currenly, it assumes the HTML document has boot |
Hao Zhu | e10cfd3 | 2017-02-21 16:41:14 -0500 | [diff] [blame] | 29 | } |