rk.XML.wizard: Create XML wizard section for RKWard plugins

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

rk.XML.wizardR Documentation

Create XML wizard section for RKWard plugins

Description

This function will create a wizard section with optional child nodes "browser", "checkbox", "column", "copy", "dropdown", "embed", "formula", "frame", "include", "input", "insert", "page", "preview", "radio", "row", "saveobject", "select", "spinbox", "stretch", "tabbook", "text", "valueselector", "valueslot", "varselector" and "varslot".

Usage

rk.XML.wizard(..., label = NULL, recommended = FALSE, i18n = NULL)

Arguments

...

Objects of class XiMpLe.node

label

Character string, a text label for this plugin element.

recommended

Logical, whether the wizard should be the recommended interface (unless the user has configured RKWard to default to a specific interface).

i18n

Either a character string or a named list with the optional elements context or comment, to give some i18n_context information for this node. If set to FALSE, the attribute label will be renamed into noi18n_label.

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.