| updateAceEditor {shinyAce} | R Documentation |
Update the styling or mode of an aceEditor component.
updateAceEditor(session, editorId, value, theme, readOnly, mode, fontSize,
wordWrap, useSoftTabs, tabSize, showInvisibles, border = c("normal",
"alert", "flash"), autoComplete = c("disabled", "enabled", "live"),
autoCompleters = c("snippet", "text", "keyword", "static", "rlang"),
autoCompleteList = NULL)
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. |
theme |
The Ace |
readOnly |
If set to |
mode |
The Ace |
fontSize |
If set, will update the font size (in px) used in the editor. Should be an integer. |
wordWrap |
If set to |
useSoftTabs |
Replace tabs by spaces. Default value is TRUE |
tabSize |
Set tab size. Default value is 4 |
showInvisibles |
Show invisible characters (e.g., spaces, tabs, newline characters). Default value is FALSE |
border |
Set the |
autoComplete |
Enable/Disable code completion. See |
autoCompleters |
List of completers to enable. If set to |
autoCompleteList |
If set to |
Jeff Allen jeff@trestletech.com
## Not run:
shinyServer(function(input, output, session) {
observe({
updateAceEditor(session, "myEditor", "Updated text for editor here",
mode = "r", theme = "ambiance")
})
}
## End(Not run)