Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8023831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:40:53+00:00 2026-06-04T22:40:53+00:00

According to the documentation , setting the minimumDate of a calendar will reset any

  • 0

According to the documentation, setting the minimumDate of a calendar will “reset any date any earlier date to this date”, but I would like to disable the selection of any previous dates. The control disables the “previous” month button for the month of the minimum date, but still allows selection of earlier dates.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:40:54+00:00Added an answer on June 4, 2026 at 10:40 pm

    Not having found a solution after some searching, I am posting one I finally came up with. Using the calendar’s disabled dates rules, I created the following:

    YUI().use('calendar', function (Y) {
    
        var calendar, rules,
            settings = { contentBox: '#dueDateSelect', minimumDate: new Date() };
    
        function getDisabledDatesRule(date, name) {
            var year = date.getFullYear(), 
                month = date.getMonth(), 
                daybefore = date.getDate() - 1, 
                r = {};
            r[year] = {};
            r[year][month] = {};
            r[year][month]['1-' + daybefore] = name;
            return r;
        }
    
        if (settings.minimumDate) {
            settings.disabledDatesRule = 'days-before-min';
            rules = getDisabledDatesRule(
                settings.minimumDate, 
                settings.disabledDatesRule
            );
        }
    
        calendar = new Y.Calendar(settings).render();
    
        if (rules) {
            calendar.set("customRenderer", {
                rules: rules
            });
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the documentation i would like to overwrite predefined formats using this settings:
According the PhoneGap documentation , I can write a JavaScript proof-of-concept like this: window.plugins.barcodeScanner.scan(
According to the MSDN documentation for the WindowStartupLocation Property : Setting CenterScreen causes a
According to this: http://www.xmlplease.com/xquery-xhtml XQuery does not have a standard way of setting the
According to the documentation AbsoluteOptions[expr,name] gives the absolute setting for the option name. AbsoluteOptions
This is driving me nuts so any advice from fellow users would be welcome.
So frustrating. :P Really would like these to be cached on users' browsers but
I'm using TinyXML to parse/build XML files. Now, according to the documentation this library
According to Django documentation, if SESSION_EXPIRE_AT_BROWSER_CLOSE is set to True, Django will use browser-length
According to connects documentation the session should expire when the browser is closed: By

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.