id | R Documentation |
This function is intended to be used for generating JavaScript code for
RKWard plugins. Its sole purpose is to replace objects of class XiMpLe.node
which hold an XML node of some plugin GUI definition,
and objects of classes rk.JS.arr
,
rk.JS.opt
or rk.JS.var
with their ID (or JS variable name),
and combine these
replacements with character strings.
id( ..., quote = FALSE, collapse = "", js = TRUE, guess.modifier = TRUE, .objects = list(...) )
... |
One or several character strings and/or |
quote |
Logical, if the character strings should be deparsed,
so they come out "as-is" when
written to files, e.g. by |
collapse |
Character string, defining if and how the individual elements should be glued together. |
js |
Logical,
if |
guess.modifier |
Logical,
if |
.objects |
Alternative way of specifying objects, if you already have them as a list. |
A character string.
rk.JS.vars
,
rk.JS.array
,
rk.JS.options
,
echo
,
qp
(a shortcut for id
with different defaults),
and the Introduction to Writing Plugins for RKWard
# an example checkbox XML node cbox1 <- rk.XML.cbox(label="foo", value="foo1", id.name="CheckboxFoo.ID") id("The variable name is: ", cbox1, "!")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.