Learn R Programming

editbl (version 1.2.0)

addButtons: Add modification buttons as a column

Description

Add modification buttons as a column

Usage

addButtons(
  df,
  columnName,
  ns,
  iCol = "i",
  canEditRow = TRUE,
  canDeleteRow = TRUE,
  statusCol = "status"
)

Value

df with extra column containing buttons

Arguments

df

data.frame

columnName

character(1)

ns

namespace function

iCol

character(1) name of column containing a unique identifier.

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.

statusCol

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

Author

Jasper Schelfhout