jQuery UI Widgets Forums Editors Calendar Hide previous and next month

This topic contains 2 replies, has 2 voices, and was last updated by  floydus 8 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Hide previous and next month #86680

    floydus
    Participant

    I would like to hide the arrows for changing months, I haven’t found any option to do such.
    I’ve been able to hide them by using the following code

    $(".jqx-icon-arrow-left").css('visibility', 'collapse');
     $(".jqx-icon-arrow-left").css('display', 'none');
     $(".jqx-icon-arrow-right").css('visibility', 'collapse');
     $(".jqx-icon-arrow-right").css('display', 'none');

    but the thing is I need to do that a few seconds after it is displayed (setTimeout) ugly…

    Also, is there a calendar fully loaded event I could use ?

    Thanks for your time all.

    Hide previous and next month #86690

    Hristo
    Participant

    Hello floydus,

    Unfortunately, there is no such event.
    I would like to suggest you one another widget – jqxDateTimeInput.
    Please, take a look this example:
    http://jsfiddle.net/e0jbs70L/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Hide previous and next month #86817

    floydus
    Participant

    I ended up doing such… and it works well, I post it here in case someone else wants to do the same…. 🙂
    thanks anyway !
    My initiating code…

    $("#calendarContainerMemes").jqxCalendar({ width: '100%', height: '400px', culture: 'fr-FR', showOtherMonthDays: false, disabled: true, renderedHandler: function(numRendered) {
    		runCustomLookOnCalendar('calendarContainerMemes');
    		 }
    	 });

    Inside render method…

    render: function() {
    			startRendering = new Date().getTime();
                if (!this.canRender) {
                    return
                }
                this.host.children().remove();
                var c = this._renderSingleCalendar("View" + this.element.id);
                var b = this;
                this.host.append(c)
    			var end = new Date().getTime();
    			var time = end - startRendering;
    			if (this.renderedHandler) {
                        this.renderedHandler(time)
                    }
            }
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.