addButtons: Add modification buttons as a column

View source: R/eDT.R

addButtonsR Documentation

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"
)

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'.

Value

df with extra column containing buttons

Author(s)

Jasper Schelfhout


editbl documentation built on April 3, 2025, 6:21 p.m.