View source: R/rk.plugin.component.R
rk.plugin.component | R Documentation |
Generate RKWard plugin components
rk.plugin.component( about, xml = list(), js = list(), rkh = list(), provides = c("logic", "dialog"), scan = c("var", "saveobj", "settings", "preview"), unused.vars = FALSE, guess.getter = FALSE, hierarchy = "test", include = NULL, create = c("xml", "js", "rkh"), dependencies = NULL, hints = TRUE, gen.info = TRUE, indent.by = rk.get.indent() )
about |
Either a character string with the name of this plugin component,
or an object of class |
xml |
A named list of options to be forwarded to |
js |
A named list of options to be forwarded to |
rkh |
A named list of options to be forwarded to |
provides |
Character vector with possible entries of |
scan |
A character vector to trigger various automatic scans of the generated GUI XML file. Valid enties are:
|
unused.vars |
Logical,
if |
guess.getter |
Logical,
if |
hierarchy |
A character vector with instructions where to place this component in the menu hierarchy,
one list or string.
Valid single values are |
include |
Character string or vector, relative path(s) to other file(s), which will then be included in the head of the GUI XML document. |
create |
A character vector with one or more of these possible entries:
|
dependencies |
An object of class |
hints |
Logical,
if |
gen.info |
Logical,
if |
indent.by |
A character string defining the indentation string to use. |
An object of class rk.plug.comp
.
Introduction to Writing Plugins for RKWard
## Not run: test.dropdown <- rk.XML.dropdown("mydrop", options=list("First Option"=c(val="val1"), "Second Option"=c(val="val2", chk=TRUE))) test.checkboxes <- rk.XML.row(rk.XML.col( list(test.dropdown, rk.XML.cbox(label="foo", val="foo1", chk=TRUE), rk.XML.cbox(label="bar", val="bar2")) )) test.vars <- rk.XML.vars("select some vars", "vars go here") test.tabbook <- rk.XML.dialog(rk.XML.tabbook("My Tabbook", tabs=c("First Tab"=test.checkboxes, "Second Tab"=test.vars))) rk.plugin.component("Square the Circle", xml=list(dialog=test.tabbook)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.