1. #21
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    alexpgh is on a distinguished road

      0  

    Default


    Thanks a lot! This is exactly what I need

  2. #22
    Ext User meza's Avatar
    Join Date
    Mar 2008
    Posts
    5
    Vote Rating
    0
    meza is on a distinguished road

      0  

    Default events

    events


    Hi there!

    I've updated the stuff to fit my needs.
    Maybe it comes handy to others.

    PHP Code:
    initComponent : function(){
            
    Ext.ux.MultiMonthCalendar.superclass.initComponent.call(this);
            
    this.value this.value this.value.clearTime() : new Date().clearTime();
            
    this.initDisabledDays();
            
    this.noOfMonthPerRow this.noOfMonthPerRow this.noOfMonth ?this.noOfMonth this.noOfMonthPerRow
        this
    .addEvents({
            
    'change':true
            
    ,'add':true
            
    ,'remove':true
        
    }) 
    PHP Code:
        handleDateClick : function(et){
            
    e.stopEvent();
            var 
    pn t.parentNode;
            if(
    t.dateValue && pn.className.indexOf("x-date-disabled")<0){
                if ( (
    pn.className.indexOf("x-date-prevday")<0) && pn.className.indexOf("x-date-nextday")<0) {
                  if (
    pn.className.indexOf("x-date-selected")<0) {
                    
    pn.className += " x-date-selected";
            var 
    oldDates this.eventDates;
                    
    this.addEventDate(t.dateValue);
            var 
    newDates this.eventDates;
            
    this.fireEvent('change',{
                
    'method':'add',
                
    'currentDate':t.dateValue,
                
    'newDates':newDates,
                
    'oldDates':oldDates
            
    });
            
    this.fireEvent('add',{
                
    'currentDate':t.dateValue,
                
    'newDates':newDates,
                
    'oldDates':oldDates
            
    });
                  } else {
                    
    pn.className "x-date-active";
            var 
    oldDates this.eventDates;
                    
    this.removeEventDate(t.dateValue);
            var 
    newDates this.eventDates;
            
    this.fireEvent('change',{
                
    'method':'remove',
                
    'currentDate':t.dateValue,
                
    'newDates':newDates,
                
    'oldDates':oldDates
            
    });
            
    this.fireEvent('remove',{
                
    'currentDate':t.dateValue,
                
    'newDates':newDates,
                
    'oldDates':oldDates
            
    });

                  }
                }
            }
        }, 

    usage:
    PHP Code:
    items: [{
                
    xtype'mmcalendar',
                
    value: new Date(200801),
                
    noOfMonth 3,
                
    noOfMonthPerRow 3,
                
    eventDates evtDate,
            
    listeners: {
            
    'change':{
                
    fn:function(params){
                     
    //..whateva'
                
    }
                }
            }
            ,
    'add':{
                
    fn:function(params){
                     
    //..whateva'
                
    }
                }
            }
            ,
    'remove':{
                
    fn:function(params){
                     
    //..whateva'
                
    }
                }
            }

            }] 

  3. #23
    Sencha User
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
    jimmynsantoso is on a distinguished road

      0  

    Default


    how format for eventDates ? have a sample?

    thanks but this is very good code

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar