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

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

rk.XML.dialogR Documentation

Create XML dialog section for RKWard plugins

Description

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

Usage

rk.XML.dialog(..., 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 dialog should be the recommended interface (unless the user has configured RKWard to default to a specific interface). This attribute currently has no effect, as it is implicitly "true", unless the wizard is recommended.

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 an input field and two checkboxes
test.input <- rk.XML.input("Type some text")
test.cbox1 <- rk.XML.cbox(label="Want to type?", val="true")
test.cbox2 <- rk.XML.cbox(label="Are you shure?", val="true")
test.dialog <- rk.XML.dialog(rk.XML.col(test.input, test.cbox1, test.cbox2))
cat(pasteXML(test.dialog))

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