Sfoglia il codice sorgente

enable tooltip in full calander (#3166)

We need to pass this event data in field map to show tooltip
	field_map: {
		"start": "date",
		"end": "date",
		"id": "name",
		"tooltip": "doctor",
		"title": "doctor",
		"allDay": "allDay",
		"child_name": "name"
	},
version-14
sbkolate 8 anni fa
committed by Rushabh Mehta
parent
commit
045d335aea
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      frappe/public/js/frappe/views/calendar/calendar.js

+ 3
- 0
frappe/public/js/frappe/views/calendar/calendar.js Vedi File

@@ -130,6 +130,9 @@ frappe.views.Calendar = Class.extend({
}
})
},
eventRender: function(event, element) {
element.attr('title', event.tooltip);
},
eventClick: function(event, jsEvent, view) {
// edit event description or delete
var doctype = event.doctype || me.doctype;


Caricamento…
Annulla
Salva