javascript - Reverse lookup enum in google apps script -


the function tocolor() should resolve number(https://developers.google.com/apps-script/reference/calendar/event-color) color name.

object.prototype.tocolor = function() {     return calendarapp.eventcolor[this]; };  for(var i=0;i<events.length;i++) sheet.appendrow(events[i].getcolor().tocolor()); 

i tried above code, says undefined.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -