rk.rkh.caption: Create XML "caption" node for RKWard help pages

View source: R/rk.rkh.caption.R

rk.rkh.captionR Documentation

Create XML "caption" node for RKWard help pages

Description

This function will create a caption node for settings sections in RKWard help files.

Usage

rk.rkh.caption(id, title = NULL, i18n = NULL)

Arguments

id

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

title

Character string, title to be displayed. If NULL, the label of the element will be shown.

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.

Value

An object of class XiMpLe.node.

See Also

rk.rkh.doc, rk.rkh.settings and the Introduction to Writing Plugins for RKWard

Examples

# define a sample frame
test.dropdown <- rk.XML.dropdown("mydrop",
  options=list("First Option"=c(val="val1"),
  "Second Option"=c(val="val2", chk=TRUE)))
test.frame <- rk.XML.frame(test.dropdown, label="Some options")
# create the caption
test.caption <- rk.rkh.caption(test.frame)
cat(pasteXML(test.caption))

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