Jump to content

UniCalendar missing event ?


arilotta

Recommended Posts

Hi,

 

You can try to use this approach:

 

UniCalendar -> ClientEvents -> UniEvents -> Ext.picker.Date [picker] -> beforeInit fn:

function picker.beforeInit(sender, config)
{
    Ext.override(Ext.DatePicker, {

        isAnotherMonthView: function(date) {
            var activeDate = this.activeDate || date;
            return date.getYear() != activeDate.getYear() || date.getMonth() != activeDate.getMonth();
        },

        update: function(date, forceRefresh) {
            var me = this;
            monthViewChange = me.isAnotherMonthView(date);

            this.callParent(arguments);

            if (monthViewChange) {
                Ext.defer(function() {
                    me.fireEvent("select");
                }, 200);
            }
        }
    });
}

http://forums.unigui.com/index.php?/topic/7353-tunicalendar-highlight-days-and-more/&do=findComment&comment=38082

 

Best regards,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...