intbox_n_ddboxes_server: Implement 1 integer input box and 2 dropdown boxes together.

View source: R/intbox-n-ddboxes.R

intbox_n_ddboxes_serverR Documentation

Implement 1 integer input box and 2 dropdown boxes together.

Description

The server component of the Shiny module for creating a integer input box and 2 side-by-side dropdown boxes with choices depending on the value entered into the input box.

Usage

intbox_n_ddboxes_server(
  id,
  labels = c("x-axis", "y-axis"),
  choice_part_labels = "X",
  selections = c("X1", "X2")
)

Arguments

id

String. The input slot that will be used to access the value.

labels

Character vector of display labels for the dropdown boxes.

choice_part_labels

String. Part of the label for the value choices.

selections

Character vector of the value choices for each dropdown box. All dropdown boxes share the same value choices.

Value

A module server function that can be called in a reactive env.

See Also

intbox_n_ddboxes_ui for the UI.

Examples

inst/examples/ex-intbox_n_ddboxes.R

cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.