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

DON-1061 Add configuration to CalendarParams to hide floating year label and show year in Month Label #2173

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

henrik-sky
Copy link
Contributor

DON-1061 Add configuration to CalendarParams to show/hide floating year label and year in month label

Added this boolean to CalendarParams:

val yearLabelInMonthHeader: Boolean = false,

Following this discussion.

Boolean off (Default) Boolean On
pre-selected-range year-in-month-label-no-floating-year

Remember to include the following changes:

  • Component README.md
  • Tests

If you are curious about how we review, please read through the code review guidelines

@henrik-sky henrik-sky added the minor A new & backwards compatible feature/component label Jan 7, 2025
@@ -55,12 +55,13 @@ data class CalendarParams(
val dateContentDescriptionStyle: FormatStyle = FormatStyle.FULL,
val now: LocalDate = LocalDate.now(),
val monthSelectionMode: MonthSelectionMode = MonthSelectionMode.Disabled,
val yearLabelInMonthHeader: Boolean = false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add this new param to the documentation above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A new & backwards compatible feature/component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants