Learn R Programming

editbl (version 1.3.0)

createButtons: Create buttons to modify the row.

Description

Create buttons to modify the row.

Usage

createButtons(
  row,
  suffix,
  ns,
  canEditRow = TRUE,
  canDeleteRow = TRUE,
  canCloneRow = TRUE,
  statusCol = "_editbl_status"
)

Value

character(1) HTML

Arguments

row

tibble with single row

suffix

character(1)

ns

character(1) namespace

canEditRow

can be either of the following:

  • logical, e.g. TRUE or FALSE

  • function. Needs as input an argument row which accepts a single row tibble and as output TRUE/FALSE.

canDeleteRow

can be either of the following:

  • logical, e.g. TRUE or FALSE

  • function. Needs as input an argument row which accepts a single row tibble and as output TRUE/FALSE.

canCloneRow

can be either of the following:

  • logical, e.g. TRUE or FALSE

  • function. Needs as input an argument row which accepts a single row tibble and as output TRUE/FALSE.

statusCol

character(1) name of column with general status (e.g. modified or not). if NULL, the data is interpreted as 'unmodified'.

Details

buttons used per row in the app.