Comments (4)
Ok, so it would make sense to add another type of event when the viewable days update - got it and agreed.
from daykeep-calendar-quasar.
Closing the issue. You emit events from all the buttons - legendary!
from daykeep-calendar-quasar.
Reopening because as far as I can tell, the events don't actually emit the start and end dates of the selected period.
from daykeep-calendar-quasar.
So a "beta" version of this functionality will be in v0.3.2. This actually turned out to be a bit more difficult to implement than I thought only because of the different number of configurations that are possible with the calendar. The way it works is as follows:
When a calendar element is displayed, it'll (in theory) trigger an event that looks like:
display-change-REF
payload: Array[1]
0: Object
endDate: "2019-02-07",
numDays: 3,
startDate: "2019-02-05",
viewType: "CalendarMultiDay",
visible: true
If you're just using a single calendar component (say CalendarAgenda) then visible
will always be true and things are fairly self-explanatory. However, if you're using the full Calendar component things get interesting. The visible
variable value should show which tab is active, but other tabs will also respond to changes (at least in my experience).
When a user navigates forward / backward then two additional values will be present in the event - moveUnit
(such as 'day', 'month', etc.) and moveValue
(positive indicates forward, negative indicates moving backward).
I think with all these values it should be possible to craft whatever just-in-time data look-ups you need to do. But for now I'm not going to document this and continue to refine.
from daykeep-calendar-quasar.
Related Issues (20)
- CalendarMonth previous month day should display on current month calendar just like Google Calendar.
- 如何在vue 里面安装使用呢 HOT 1
- How to install the project with NPM? This is the project vue cli 2.x. Can I use this plug-in? If possible, how to install it? Could you please give me some advice
- Can you guys use some help?
- Edit Event Modal not working HOT 3
- Cannot find declaration or cannot find exported members. HOT 1
- Please add ability to add events to demo
- Please add a reservation view
- render-html not propagated
- agenda multiple all-day events
- Changing multi day views ignores day-display-start-hour
- Calendar (v0.3.4) events not showing correctly on chrome 80
- Color - Hexadecimal
- Fit height
- Events not being shown at all
- can i click the year button to locate a certain year?
- Get the month the calendar is selected
- Readme.md is not enough to use calendar.
- Question: Upgrade to v2
- how to set current date?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daykeep-calendar-quasar.