Calendar color based on status?

Hi everyone,

I watch the frappe video and it seems possible to set status colors using this approach

frappe.listview_settings['Meeting'] = {
  get_indicator: function(doc){
    return [__(doc.status), {
      "Planned": "blue",
      "Invitation Sent": "orange",
      "In Progress": "red",
      "Completed": "green",
      "Cancelled": "darkgrey"
    }[doc.status], "status,=," + doc.status];
  }
};

How could I do the same for calendar?

Thanks.

any tips?

@ericmachine88
Hope this will help

3 Likes

thanks so much :slight_smile: i didn’t know I could reference existing codes, learned something today :slight_smile: