0
的頭銜,我不能標題從該對話框更改:不能改變從對話框
var myDialog = dijit.byId('myDialog_'
+ self["index"]);
if (!myDialog) {
//setting date for the dialog
endTime = new Date();
var endDate = endTime.customFormat("#DD#.#MM#.#YYYY#");
startTime = new Date(endTime.getTime() - (endTime.getHours() * 3600000) - (endTime.getMinutes() * 60000) - (endTime.getSeconds() * 1000) - 518400000); //one week
var startDate = startTime.customFormat("#DD#.#MM#.#YYYY#");
myDialog = new dijit.Dialog({
id : 'myDialog_' + self["index"],
title : 'Chart ' + _params.chartTitle
+ " vom " + startDate + " bis "
+ endDate,
style : 'width:820px;height:500px;'
});
//destroy objects after closing the dialog
myDialog.connect(myDialog, "hide", function (e) {
myDialog.destroy();
//graph.destroy();
dojo.destroy(trafficLight);
dijit.byId("selectVK_" + self["index"]).destroy();
dijit.byId("selectTime_" + self["index"]).destroy();
});
}
我嘗試這樣做:
dojo.byId('myDialog_' + self["index"]).title ="test";
,但沒有happend ...我想這:
dojo.byId("myDialog_" + self["index"]).set('title', "huhu");
myDialog.set('title', "huhu");
dojo.byId(myDialog).set('title', "huhu");
,我總是出現錯誤,則該組()不是一個函數... 有什麼建議?
你能提供一個小提琴嗎? –