0
我正在使用daypilot調度程序,我想在彈出的單擊時顯示事件的詳細信息。如何獲取1個事件的一些信息並在popup中設置?無法用ng-repeat在彈出窗口中顯示內容?
$scope.schedulerConfig.onEventClicked = function(args){
var dp = $scope.scheduler;
var modal = new DayPilot.Modal({
onClosed: function(args) {
if (args.result) {
loadEvents();
}
//else console.log("error");
dp.clearSelection();
}
});
modal.showHtml("<h1>Details</h1><div ng-repeat='event in events' ng-
if='event.id == 1490'><div >{{ event.id }}</div><div >{{ event.text }}</div>
<div >{{ event.start }}</div> <div >{{ event.end }}</div><div >{{ event.resource }}</div></div>");
}
感謝您的回答,我試圖使用modal.showUrl(「eventClicked.html」);但有錯誤:未捕獲錯誤:[$ injector:modulerr] !! – Fredj