Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar: Add extra slot #6648

Open
3 tasks done
SK-ERIC opened this issue Dec 27, 2024 · 0 comments · May be fixed by #6668
Open
3 tasks done

Calendar: Add extra slot #6648

SK-ERIC opened this issue Dec 27, 2024 · 0 comments · May be fixed by #6668
Labels
feature request New feature or request

Comments

@SK-ERIC
Copy link

SK-ERIC commented Dec 27, 2024

Clear and concise description of the problem

Adding an extra slot to the Calendar for customization purposes.

Suggested solution

Calendar Slots

Name Parameters Description Version
extra (props: { year: number, month: number, prev: () => void, next: () => void, today: () => void }) NEXT_VERSION

year\month:

{ year, month: calendarMonth },

prev function:
onClick={handlePrevClick}

next function:
onClick={handleNextClick}

today function:
onClick={handleTodayClick}

Alternative

Calendar Methods Provided by the Composition API:

prev: () => void.
next: () => void.
today: () => void.

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@SK-ERIC SK-ERIC added the feature request New feature or request label Dec 27, 2024
SK-ERIC added a commit to SK-ERIC/naive-ui that referenced this issue Jan 2, 2025
@SK-ERIC SK-ERIC linked a pull request Jan 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant