created, a property called "templateString" can be set to a fragment of HTML. This fragment
defines the buttons. The default text looks as follows:
<div>
<div data-dojo-attach-point="buttonContainer" class="buttonContainer">
<div data-dojo-attach-point="toolbar" data-dojo-type="dijit.Toolbar" >
<button data-dojo-attach-point="previousButton"
data-dojo-type="dijit.form.Button" >â—„</button>
<button data-dojo-attach-point="nextButton"
data-dojo-type="dijit.form.Button" >â–º</button>
<span data-dojo-type="dijit.ToolbarSeparator"></span>
<button data-dojo-attach-point="todayButton"
data-dojo-type="dijit.form.Button">Today</button>
<span data-dojo-type="dijit.ToolbarSeparator"></span>
<button data-dojo-attach-point="dayButton"
data-dojo-type="dijit.form.Button" >Day</button>
<button data-dojo-attach-point="fourDaysButton"
data-dojo-type="dijit.form.Button" >4 Days</button>
<button data-dojo-attach-point="weekButton"
data-dojo-type="dijit.form.Button" >Week</button>
<button data-dojo-attach-point="monthButton"
data-dojo-type="dijit.form.Button" >Month</button>
</div>
</div>
<div data-dojo-attach-point="viewContainer" class="viewContainer"></div>
</div>
Notice that it defines a series of "buttons". Omitting these definitions from your own custom
template will remove the buttons from the navigation area.
The buttons are:
• previousButton
• nextButton
• todayButton
• dayButton
• fourDaysButton
• weekButton
• monthButton
Some of the more interesting properties of the Calendar object are:
• date – The start date shown in the calendar.
• dateInterval – The interval of the calendar. This entry shows some number of items
where the number is defined by the dateIntervalSteps property. The choices are:
◦ "day" – Show dateIntervalSteps days. Here is a day calendar:
Page 195
Comentários a estes Manuais