rk.XML.valueselector: Create node "valueselector" for RKWard plugins

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

rk.XML.valueselectorR Documentation

Create node "valueselector" for RKWard plugins

Description

Create node "valueselector" for RKWard plugins

Usage

rk.XML.valueselector(
  label = NULL,
  options = list(label = c(val = NULL, chk = FALSE, i18n = NULL)),
  id.name = "auto",
  i18n = NULL
)

Arguments

label

Character string, a text label for the value selection slot. Must be set if id.name="auto".

options

A named list with string values to choose from. The names of the list elements will become labels of the options, val defines the value to submit if the value is selected, and chk=TRUE should be set in the one option which is checked by default. You might also provide an i18n for this particular option (see i18n). Objects generated with rk.XML.option are accepted as well.

id.name

Character vector, unique ID for this element.

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.valueslot, rk.XML.values, rk.XML.option, and the Introduction to Writing Plugins for RKWard

Examples

test.valueselector <- rk.XML.valueselector("Select some values")
cat(pasteXML(test.valueselector))

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