QDate: provide slot for individual days in month view

Open
#7,076 13 comments 6 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start by locating the QDate component and reading how its existing events property marks individual days in month view. Determine how a per-day slot could expose custom rendering and pointer events; done should allow callers to render distinct day content, including badges or other components, without requiring QCalendar.

Written by the indexing model from the issue text.

Description

kind/feature 💡

Is your feature request related to a problem? Please describe.
There is a events property which allows to mark individual days in month view with colored underline. Unfortunately I would prefer to have a different mark for the event, Maybe even a badge with number of events in this particular day.

Describe the solution you'd like
If there would be available a specific slot in QDate component, for rendering of individual days, I could make my events or days visualisation as I wish. Heck, I could even capture mouseenter events and display some kind of hint, tip i popup when user moves the cursor over specific day. I could even put in some days other QComponents.

Describe alternatives you've considered
The only viable alternative as of today to display different day rendering and capturing mouse events on particular days is just using another component from another library or single Vue component. The available app extension QCalendar is too big for using - for example I need to just display different colors for particular days in UMD mode, where every kb counts.

Additional context
This doesn't seem as overly complicated, but it could IMHO dramatically improve quality of life and possible use cases for Quasar as a machine for presentation data based on time.

Dominant language
JavaScript
Stars
27.2k
Forks
3.7k
Avg merge
1d 22h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quasarframework/quasar

All issues in quasarframework/quasar

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.