Description Usage Arguments Author(s) Examples
Update the styling or mode of an aceEditor component.
1 2 | updateAceEditor(session, editorId, value, theme, readOnly, mode, fontSize,
wordWrap, border = c("normal", "alert", "flash"))
|
session |
The Shiny session to whom the editor belongs |
editorId |
The ID associated with this element |
value |
The initial text to be contained in the editor. |
mode |
The Ace |
theme |
The Ace |
readOnly |
If set to |
fontSize |
If set, will update the font size (in px) used in the editor. Should be an integer. |
wordWrap |
If set to |
Jeff Allen jeff@trestletech.com
1 2 3 4 5 6 7 8 9 | ## Not run:
shinyServer(function(input, output, session) {
observe({
updateAceEditor(session, "myEditor", "Updated text for editor here",
mode="r", theme="ambiance")
})
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.