R/get_output_info.R

Defines functions get_outputInfo.default get_outputInfo

get_outputInfo <- function(loon.grob, loonWidgetsInfo) {
  obj <- character(0)
  class(obj) <- names(loon.grob$children)
  UseMethod("get_outputInfo", obj)
}

get_outputInfo.default <- function(loon.grob, loonWidgetsInfo) {
  
  brushId <- if(is.null(loonWidgetsInfo$selected)) integer(0) else which(loonWidgetsInfo$selected)
  
  list(
    brushId = brushId,
    loonWidgetsInfo = loonWidgetsInfo
  )
}

Try the loon.shiny package in your browser

Any scripts or data that you put into this service are public.

loon.shiny documentation built on Oct. 8, 2022, 5:05 p.m.