Skip to main content

GRID_field

info

This functionality is available in the PRO edition only.

Description

Specifies the text in the columns

GRID_field: (field_name: string, event: object) => string;

Parameters

  • field_name - (required) string - the column's id
  • event - (required) object - the event object

Returns

  • text - (string) - html text for rendering in the scheduler

Example

scheduler.templates.grid_field = function(field_name, event){
return event[field_name];
};

Applicable views: Grid view

Details

note

The template requires the grid_view plugin to be activated.

Note, the template isn't applied to columns with id='date', id='start_date' or id='end_date'. Such columns use the GRID_full_date and GRID_single_date templates, respectively.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.