{"action":"closed","issue":{"url":"https://api.github.com/repos/charliekassel/vuejs-datepicker/issues/475","repository_url":"https://api.github.com/repos/charliekassel/vuejs-datepicker","labels_url":"https://api.github.com/repos/charliekassel/vuejs-datepicker/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/charliekassel/vuejs-datepicker/issues/475/comments","events_url":"https://api.github.com/repos/charliekassel/vuejs-datepicker/issues/475/events","html_url":"https://github.com/charliekassel/vuejs-datepicker/issues/475","id":319006223,"number":475,"title":"Disabled dates not working","user":{"login":"LTroya","id":6491259,"avatar_url":"https://avatars0.githubusercontent.com/u/6491259?v=4","gravatar_id":"","url":"https://api.github.com/users/LTroya","html_url":"https://github.com/LTroya","followers_url":"https://api.github.com/users/LTroya/followers","following_url":"https://api.github.com/users/LTroya/following{/other_user}","gists_url":"https://api.github.com/users/LTroya/gists{/gist_id}","starred_url":"https://api.github.com/users/LTroya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LTroya/subscriptions","organizations_url":"https://api.github.com/users/LTroya/orgs","repos_url":"https://api.github.com/users/LTroya/repos","events_url":"https://api.github.com/users/LTroya/events{/privacy}","received_events_url":"https://api.github.com/users/LTroya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-30T19:27:32Z","updated_at":"2018-04-30T23:45:12Z","closed_at":"2018-04-30T23:45:11Z","author_association":"NONE","body":"I was looking at the example code in order to get disabled dates to working, but no luck. \r\n\r\nI tried: \r\n`<datepicker :input-class=\"'form-control'\" :disabled-dates=\"disabledDates\"></datepicker>`\r\nand \r\n`<datepicker :input-class=\"'form-control'\" :disabledDates=\"disabledDates\"></datepicker>`\r\n\r\nI look into the source code of the plugin but I didn't see `disabledDates` prop.  I use the same configuration from the docs:\r\n\r\n```\r\ndisabledDates: {\r\n    to: new Date(2018, 0, 5), // Disable all dates up to specific date\r\n    from: new Date(2018, 0, 26), // Disable all dates after specific date\r\n    days: [6, 0], // Disable Saturday's and Sunday's\r\n    daysOfMonth: [29, 30, 31], // Disable 29th, 30th and 31st of each month\r\n    dates: [ // Disable an array of dates\r\n        new Date(2018, 9, 16),\r\n        new Date(2018, 9, 17),\r\n        new Date(2018, 9, 18)\r\n    ],\r\n    ranges: [{ // Disable dates in given ranges (exclusive).\r\n        from: new Date(2018, 11, 25),\r\n        to: new Date(2018, 11, 30)\r\n    }, {\r\n        from: new Date(2018, 1, 12),\r\n        to: new Date(2018, 2, 25)\r\n    }],\r\n    // a custom function that returns true if the date is disabled\r\n    // this can be used for wiring you own logic to disable a date if none\r\n    // of the above conditions serve your purpose\r\n    // this function should accept a date and return true if is disabled\r\n    customPredictor: function (date) {\r\n        // disables the date if it is a multiple of 5\r\n        if (date.getDate() % 5 == 0) {\r\n            return true\r\n        }\r\n    },\r\n},\r\n```\r\n\r\nMaybe the API changes and the docs wasn't updated.I appreciate any hint.\r\nThanks in advance."}}
{"actor":{"display_login":"LTroya"}}