Skip to content

Can we use the onchange event?  #89

Description

@daeyoonlee

Dear Swechhya,

Can we use the onchange event?
I tried the following, but nothing happens when I change the table value.

onchange <- "function(instance, cell, x, y, value) {
alert('test');
}"

excelTable(
  data = df,
  editable = TRUE,
  wordWrap = TRUE,
  autoWidth = TRUE,
  autoFill = FALSE,
  lazyLoading = TRUE,
  loadingSpin = TRUE,
  getSelectedData = FALSE,
  columnSorting = FALSE,
  columnResize = FALSE,
  rowResize = FALSE,
  columnDrag = FALSE,
  rowDrag = FALSE,
  allowInsertRow = FALSE,
  allowInsertColumn = FALSE,
  allowDeleteRow = FALSE,
  allowDeleteColumn = FALSE,
  allowRenameColumn = FALSE,
  allowComments = FALSE,
  columns = columns_df, 
  # ...
  tableOverflow = TRUE,
  contextMenu = FALSE,
  defaultColAlign = 'left',
  onchange = htmlwidgets::JS(onchange)
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions