PDA

View Full Version : Ext.ux.DatePickerPlus + DateFieldPlus + setEventDates



creep
30 Jun 2008, 8:25 AM
Hello,
I developed a widget that uses the user extension DatePickerPlus...

[CODE]var mySuggestDate = new Ext.ux.form.DateFieldPlus({
id:'dateFieldPlus',
multiSelection:false,
showActiveDate:true,
usePickerPlus:true,
format : 'd/m/Y',
markNationalHolidays:false,
renderOkUndoButtons:false,
renderTodayButton:false,
showActiveDate:true,
value: new Date().clearTime().format('d/m/Y'),
eventDates : function(year) {
var dates = [
{
date: new Date(2008,5,14),
text: "Premier test d'ajout d'

aurelien
30 Jun 2008, 11:02 AM
Bonjour Creep -

Obviously, you try to call the method setEventDates (line 333 of the source fileext.ux.datepickerplus.js) defined into DatePickerPlus and not into DateFieldPlus...

... believe firebug ...

creep
30 Jun 2008, 3:09 PM
aurelien > thanks... :-?

but i need this function... DateFieldPlus uses the "DatePickerPlus"...

I must implement "setEventDates" function in the source code of DateFieldPlus! B)

... :s ~o)



"Live as if you were to die tomorrow. Learn as if you were to live forever."

wm003
8 Feb 2009, 1:27 AM
the datepickerplus is a subobject of datefieldplus, so use


mydatefielsplus.picker.setEventDates()