diff --git a/R/D3TableFilter.R b/R/D3TableFilter.R index b882d50..88a44d7 100755 --- a/R/D3TableFilter.R +++ b/R/D3TableFilter.R @@ -125,6 +125,18 @@ #' col_0 = "auto:white:green" #' ) #' +#' # ---------------------------------------------------------------------------- +#' # to save widget as a freestanding html file +#' # ---------------------------------------------------------------------------- +#' library(magrittr) +#' library(htmlwidgets) +#' library(D3TableFilter) +#' mtcars %>% d3tf(tableProps = tableProps, +#' showRowNames = TRUE, +#' tableStyle = "table table-bordered") %>% +#' saveWidget(file = "test.html", selfcontained = FALSE) +#' +#' #' #' @import gtools #' @import htmlwidgets