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

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

rk.XML.frameR Documentation

Create XML node "frame" for RKWard plugins

Description

Create XML node "frame" for RKWard plugins

Usage

rk.XML.frame(
  ...,
  label = NULL,
  checkable = FALSE,
  chk = TRUE,
  id.name = "auto",
  i18n = NULL
)

Arguments

...

Objects of class XiMpLe.node.

label

Character string, a text label for this plugin element.

checkable

Logical, if TRUE the frame can be switched on and off.

chk

Logical, if TRUE and checkable=TRUE the frame is checkable and active by default.

id.name

Character string, a unique ID for this plugin element. If "auto" and a label was provided, an ID will be generated automatically from the label if present, otherwise from the objects in the frame. If NULL, no ID will be given.

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

Introduction to Writing Plugins for RKWard

Examples

test.dropdown <- rk.XML.dropdown("mydrop",
  options=list("First Option"=c(val="val1"),
  "Second Option"=c(val="val2", chk=TRUE)))
cat(pasteXML(rk.XML.frame(test.dropdown, label="Some options")))

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