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

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

rk.XML.attributeR Documentation

Create XML "attribute" node for RKWard plugins

Description

This function will create a attribute node for component sections in .pluginmap files. Only meaningful for import plugins.

Usage

rk.XML.attribute(id, value = NULL, label = NULL, i18n = NULL)

Arguments

id

Either a character string (the id of the property whose attribute should be set), or an object of class XiMpLe.node (whose id will be extracted and used).

value

Character string, new value for the attribute.

label

Character string, label associated with the attribute.

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.components, and the Introduction to Writing Plugins for RKWard

Examples

test.checkbox <- rk.XML.cbox(label="foo", value="foo1", chk=TRUE)
# re-set the attribute
test.attribute <- rk.XML.attribute(test.checkbox, value="bar2", label="bar")
cat(pasteXML(test.attribute))

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