Resource Cell Render Hooks

In Resource Timeline view, “resource cells” are the cells in the resource area on the left side of the view. Each cell corresponds to a column field (such as the resource title or a custom column from resourceColumns). These hooks also fire for resource-group cells — when arg.resource is absent, the cell belongs to a group row rather than an individual resource.

resourceCellClass - a ClassName Input

resourceCellContent - a Content Injection Input

resourceCellDidMount

resourceCellWillUnmount

Argument

When the above hooks are specified as a function in the form function(arg), the arg is an object with the following properties:

  • resource - Resource Object. Absent when the cell belongs to a group row
  • field - the field name for this cell (e.g. 'title' for the title column)
  • fieldValue - the value of the field
  • el - the element. only available in resourceCellDidMount and resourceCellWillUnmount