R/print.R

Defines functions print.dash_component

Documented in print.dash_component

#' Output a dash component object as JSON 
#'
#' Objects of the `dash_component` class support a `print` method,
#' which first processes the nested list object, and then returns
#' its JSON representation.
#'
#' @param x an object of class dash_component
#' @param ... not currently used
#' @export

print.dash_component <- function(x, ...) {
  print(to_JSON(x, pretty = TRUE))
  x
}
plotly/dashR documentation built on Oct. 13, 2024, 6:57 a.m.