View source: R/rk.XML.tabbook.R
rk.XML.tabbook | R Documentation |
Create XML node "tabbook" for RKWard plugins
rk.XML.tabbook(label = NULL, tabs = list(), id.name = "auto", i18n = NULL)
label |
Character string, a text label for this plugin element. |
tabs |
An optional named list with objects of class |
id.name |
Character vector, unique IDs for the tabbook (first entry) and all tabs.
If |
i18n |
Either a character string or a named list with the optional elements |
An object of class XiMpLe.node
.
If a node in tabs
is <insert>
, it is returned as-is,
without being nested in <tab>
.
Introduction to Writing Plugins for RKWard
test.checkboxes <- rk.XML.row(rk.XML.col( rk.XML.cbox(label="foo", val="foo1", chk=TRUE), rk.XML.cbox(label="bar", val="bar2"))) test.dropdown <- rk.XML.dropdown("mydrop", options=list("First Option"=c(val="val1"), "Second Option"=c(val="val2", chk=TRUE))) # combine the above into a tabbook test.tabbook <- rk.XML.tabbook("My Tabbook", tabs=list("First Tab"=test.checkboxes, "Second Tab"=test.dropdown)) cat(pasteXML(test.tabbook))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.