Fast Data Edits (e.g. Marking to Market)

Summary

  • Shows how to use Action Columns and Plus / Minus to edit data very quickly

This example illustrates 3 features in AdapTable that aid swift data entry:

  • Plus Minus - allows users to configure "Nudge Rules" for when + or - are pressed on the keyboard
  • Action Column - special columns that contain buttons (which can be used for data entry)
  • Shortcut - enable mathematical operations when shortcut key is clicked
Super fast Data edit
Fork
  • In this demo we update the Github Stars column in 2 ways:
    • Action Columns - the Update Stars column contains Up and Down buttons that update the Github Stars column
    • Plus Minus - the Nudge Rules are attached directly to the Github Stars column
    • Note: both Modules use same bespoke rules: we increment / decrement Github Stars column by 2, unless Language is TypeScript when we increment / decrement by 10 instead
  • We also added a Shortcut rule for the the Github Watchers column where tying in 'K' will multiply current cell value by 1,000

Expand to see Initial State and Options

Try It Out
  • Press Up or Down buttons in Update Stars in first row and see Github Stars change by 2; do the same in 2nd row and note the change is 10
  • Press + or - keys in Github Stars in first row and see the cell value change by 2; do the same in 2nd row and note the change is 10
  • Type "5" and then "K" into an cell in the the Github Watchers column and see how the cell value changes to 5,000