我正在使用dojox矩阵日历。我只想要月份矩阵视图。我正在使用
calender.js
require(["dojo/parser", "dojo/ready", "dojox/calendar/Calendar", "dojo/store/Observable", "dojo/store/Memory", "dojox/calendar/MatrixView",
"dojox/calendar/Keyboard", "dojox/calendar/Mouse","dojox/calendar/CalendarBase" ],
function(parser, ready, Calendar, Observable, Memory, MatrixView, Keyboard, Mouse){
ready(function(){
var someData = [
{
id: 0,
summary: "Event 1",
startTime: new Date(2012,0, 1, 10),
endTime: new Date(2012,0, 1, 12),
calendar: "Calendar1"
}
];
calendar = new calender({
date: new Date(2012, 0, 1),
dateInterval: "day",
store: new Observable(new Memory({data: someData})),
style: "position:relative;width:100%;height:250px;"},
"instructorDetailsMatrixCalender");
});
}
);
calender.jsp
<div id="instructorDetailsMatrixCalender" ></div>
当我点击导航按钮(月,周)而不是弹出关闭时。
我想第一次只有月份矩阵视图和导航标题(< >
)按钮。
答案 0 :(得分:0)
不是使用完整的Calendar小部件,只需实例化dojox.calendar.MatrixView(日历视图是小部件)。
简单示例:
require(
['dojo/ready', 'dojox/calendar/MatrixView', 'dojo/store/Observable', 'dojo/store/Memory'],
function(ready, MatrixView, Observable, Memory){
ready( function() {
var monthlyMatrix;
// instantiate calendar
monthlyMatrix = new MatrixView(
{
style: "position:relitive; height:400px"
},
'MatrixContainer'
);
});
}
);
<强>参考强>
可能的Stackoverflow重复:Adjusting functionality of Dojox Calendar Widget