generateUIwidgets {cbpManager} | R Documentation

## Generate UI input widget

### Description

Generate UI input widget

### Usage

    generateUIwidgets(
      colname,
      mode = c("add", "edit"),
      tab = c("Patient", "Sample"),
      data = NULL,
      selected_row = NULL,
      patientIDs = NULL
    )

### Arguments

`colname` | A character string - the name of the column, that will be the label of the input
`mode` | "add" or "edit" - wether to use existing values or not
`tab` | "Patient", "Sample" - The used tab; sets the html id prefix of the input
`data` | A data.frame.
`selected_row` | A number indicating the row number of the selected row in the data.frame.
`patientIDs` | Vector of patient IDs used for drop down menu of the PATIENT_ID column

### Value

A sanitized string.

### Examples

    cbpManager:::generateUIwidgets(colname = "attribute", mode = "add", tab = "Patient")

[Package cbpManager version 1.0.2 Index]