rk.XML.embed | R Documentation |
Create XML node "embed" for RKWard plugins
rk.XML.embed( component, button = FALSE, label = "Options", namespace = NULL, id.name = "auto", i18n = NULL )
component |
Either a character string,
registered name ( |
button |
Logical, whether the plugin should be embedded as a button and appear if it's pressed. |
label |
A character string,
text label for the button (only used if |
namespace |
An optional character string,
XiMpLe node |
id.name |
Character string, a unique ID for this plugin element.
If |
i18n |
Either a character string or a named list with the optional elements |
An object of class XiMpLe.node
.
Introduction to Writing Plugins for RKWard
test.embed <- rk.XML.embed("someComponent") cat(pasteXML(test.embed))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.