GithubHelp home page GithubHelp logo

Comments (4)

sirbeagle avatar sirbeagle commented on July 29, 2024 1

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.

nicholaszuccarelli avatar nicholaszuccarelli commented on July 29, 2024

Closing the issue. You emit events from all the buttons - legendary!

from daykeep-calendar-quasar.

nicholaszuccarelli avatar nicholaszuccarelli commented on July 29, 2024

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.

sirbeagle avatar sirbeagle commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.