rk.XML.copy: Create XML copy node for RKWard plugins

View source: R/rk.XML.copy.R

rk.XML.copyR Documentation

Create XML copy node for RKWard plugins

Description

Create XML copy node for RKWard plugins

Usage

rk.XML.copy(id, as = NULL)

Arguments

id

Either a character string (the id of the property to be copied), or an object of class XiMpLe.node (whose id will be extracted and used).

as

A character string resembling the copy_element_tag_name value. I.e., must be a valid tag name. Will cause a change of tag name of the id (e.g. "tab") to as (e.g. "page").

Value

An object of class XiMpLe.node.

See Also

rk.XML.plugin, rk.plugin.skeleton, and the Introduction to Writing Plugins for RKWard

Examples

# define a checkbox for the actual dialog
test.cbox1 <- rk.XML.cbox(label="More than 30 subjects", val="true")
# define the wizard
test.text <- rk.XML.text("Did you test more than 30 subjects?")
test.copy <- rk.XML.copy(id=test.cbox1)
test.wizard <- rk.XML.wizard(rk.XML.page(list(test.text, test.copy)))
cat(pasteXML(test.wizard))

rkward-community/rkwarddev documentation built on May 9, 2022, 3:02 p.m.