2012-01-25 14 views

答えて

5

あなたは同様に他のウィジェットに、「表示された日付」やないカレンダーの「選択した日付を」変更したい他の誰のために

//change the calendar's date to just now: 
myCalendar.set('value', new Date()) 

//change the calendar's date to Christmas eve 
myCalendar.set('value', new Date(2012, 11, 24)) 
+0

を試してみてください。私は '

'と私は 'dijit.byId( 'myCal')を持っています。set( 'value'、new Date()); ' –

+0

@SathishKumarkk:これは別の質問としてお願いします。誰も私の答えのちょうどコメントがあればあなたの投稿を見るつもりはない。 – hugomg

+0

ok別途質問として投稿します。 –

0

valueプロパティをsetことができ、あなたがのcurrentFocusをしたいですカレンダー。つまり、選択したvalueは2012年1月1日になる可能性がありますが、カレンダーは現在12月を表示しています。

これは私のために働いていない

// display the month of December 2012 
widget.set('currentFocus', Date(2012, 11, 24)) 
関連する問題