Skip to contents

This function generates a UI element for inputting expressions in a Shiny application. It includes two shinyAce::aceEditor elements for inputting the name and value of a new column.

Usage

exprs_ui(
  id = "",
  value_name = "newcol",
  value_val = NULL,
  delete_button = TRUE,
  key = c("suggest", "empty", "none"),
  auto_complete_list = NULL
)

Arguments

id

Character string, an identifier for the UI element.

value_name

Default name for the new column.

value_val

Default value for the new column.

delete_button

Should a delete button be shown?

key

How to display the 'key' field

auto_complete_list

auto_complete_list, passed to shinyAce::aceEditor()

Value

A div element containing the UI components.

Examples

if (FALSE) { # \dontrun{
library(shiny)
library(shinyAce)
shinyApp(
  ui = bslib::page_fluid(
    exprs_ui(value_name = "bla", value_val = "blabla")
  ),
  server = function(input, output) {}
)
} # }