ghtml {gWidgets} | R Documentation

## Constructors for widgets to handle text input

### Description

The ghtml widget is used to enter single lines of text. The gtext widget creates a text buffer for handling multiple lines of text.

### Usage

    ghtml(url, handler = NULL, action = NULL, container = NULL, ..., toolkit = guiToolkit())

### Arguments

`url` | url to load.
`handler` | Handles a click on a URL. The default is to open the clicked url in the widget. To override, the first argument, a list `h`, has component `h\$url` containing the url.
`action` | Passed along to the handler as `h\$action`
`container` | Optional container to attach widget to
`...` | ignored
`toolkit` | Which GUI toolkit to use

### Details

This widget loads the given url into a widget. Currently no toolkits support this.

The `svalue` method returns the current url.

The `svalue<-` method loads the current url in the widget.

### Examples

    ## Not run:
      ghtml(system.file("html","gedit.html",package="gWidgets"),
        container = gwindow())
    ## End(Not run)

[Package gWidgets version 0.0-25 Index]