New icon with function

Good morning

i made a new button and want to show google map onclick (photo). My problem is that i need the description text. In which variable i can find this?

I tried the following but didn’t work:

scheduler.showMap = function(A) {
   alert(A.text);  
	};


custom click handler receives the id of the event, so you can use

scheduler._click.buttons.mymap = function(id){ alert(scheduler.getEvent(id).text); };

Great … thank you :smiley: