add.event: add.event

Description Usage Arguments Details Value Author(s) Examples

Description

Add a new event to a registry

Usage

1
add.event(registry, event, overwrite = FALSE)

Arguments

registry

EventRegistry

event

String. Name for the Event.

overwrite

Logical. If the Event already exists, should I overwrite it? If TRUE then yes, without warning. If FALSE (default) then no, throw an error.

Details

Add a new event to a registry. If an Event of that name already exists then if overwrite is not set then an error is thrown, and if overwrite is set then the contents of the old Event are simply replaced. Use add.handler to add a handler to an existing Event.

Value

Nothing good.

Author(s)

Brad Friedman

Examples

1
2
3
4
r <- new.event.registry()
has.event(r, "mouseclick")
add.event(r, "mouseclick")
has.event(r, "mouseclick")


Search within the AnalysisPageServer package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.