Mathematica > Dynamic Interactivity > Custom Interface Construction > Low-Level Interface Control > CellEventActions >

CellEventActions

CellEventActions
is an option for Cell that gives a list of actions to perform when specified events occur in connection with a cell in a notebook.
  • CellEventActions specifies that should be evaluated whenever occurs in connection with a cell.
  • The possible event specifications are the same as for EventHandler.
  • Settings for CellEventActions are often defined at the level of stylesheets, rather than for individual cells or notebooks.
  • By default, any action specified for an event by CellEventActions will override any default action that Mathematica would take for that event.
Create a cell that will change color when you click within the cell:
Create a cell that will change color when you click within the cell:
In[1]:=
Click for copyable input
Out[1]=
Make an action occur when the Enter key is pressed in a cell:
Turn the cell background green when clicking in the cell:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF