quasar icon indicating copy to clipboard operation
quasar copied to clipboard

QDate Navigation Boundaries

Open Mohanrau opened this issue 6 years ago • 2 comments

Describe the bug

navigation-min-year-month="1989/07"
navigation-max-year-month="1990/10"

QDate set navigation boundaries as per above props first time open, calendar showing current month/year and if choose year selection does not allow to navigate to next or previous years .

Codepen/jsFiddle/Codesandbox (required) https://codepen.io/rasmatius/pen/YzWqVeJ?editors=1010

To Reproduce Steps to reproduce the behavior: check codepen

Expected behavior With navigation boundaries first render shut follow min or max props instead showing current month and year

Platform (please complete the following information): Operating System - Windows_NT(10.0.19041) - win32/x64 NodeJs - 10.22.0

Global packages NPM - 6.14.8 yarn - 1.22.4 @quasar/cli - undefined @quasar/icongenie - Not installed cordova - Not installed

Important local packages quasar - 1.14.0 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time @quasar/app - 2.1.0 -- Quasar Framework local CLI @quasar/extras - 1.9.6 -- Quasar Framework fonts, icons and animations eslint-plugin-quasar - Not installed vue - 2.6.12 -- Reactive, component-oriented view layer for modern web interfaces. vue-router - 3.2.0 -- Official router for Vue.js 2 vuex - 2.5.0 -- state management for Vue.js electron - 1.8.8 -- Build cross platform desktop apps with JavaScript, HTML, and CSS electron-packager - 9.1.0 -- Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI electron-builder - Not installed @capacitor/core - Not installed @capacitor/cli - Not installed @capacitor/android - Not installed @capacitor/ios - Not installed @babel/core - 7.11.6 -- Babel compiler core. webpack - 4.44.1 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff. webpack-dev-server - 3.11.0 -- Serves a webpack app. Updates the browser on changes. workbox-webpack-plugin - 5.1.4 -- A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache. register-service-worker - 1.7.1 -- Script for registering service worker, with hooks typescript - 3.9.5 -- TypeScript is a language for application scale JavaScript development

Quasar App Extensions None installed

Mohanrau avatar Oct 16 '20 15:10 Mohanrau

Like the API for navigation-* props says, these are not used to correct the model. I'll add "You might want to also use 'default-year-month' prop", because otherwise Quasar shouldn't be in the situation to pick a "default date" for the view which is between that interval. This is why I'm saying tell QDate what default-year-month to use.

rstoenescu avatar Oct 24 '20 00:10 rstoenescu

Thank you.

Mohanrau avatar Oct 25 '20 14:10 Mohanrau