R/ghtml.R

Defines functions ghtml

Documented in ghtml

##' @include guiComponents.R

##' Class for display of HTML text
setClass("gHtml",
         contains="guiComponent",
         prototype=prototype(new("guiComponent"))
         )

##' constructor of widget to display HTML text
##'
##' @export
ghtml <- function(
                  x, handler = NULL, 
                  action = NULL, container = NULL, 
                  ..., toolkit=guiToolkit()) {
  widget <- .ghtml(toolkit,
                   x,
                   handler = handler, 
                   action = action, container = container, 
                   ...)
  obj <- new("gHtml",widget=widget,toolkit=toolkit)
  return(obj)
}

##' generic for toolkit dispatch
##' @alias ghtml
setGeneric(".ghtml",function(toolkit,
                             x, handler = NULL, 
                             action = NULL, container = NULL, 
                             ...) standardGeneric(".ghtml"))

Try the gWidgets package in your browser

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

gWidgets documentation built on April 29, 2020, 9:37 a.m.