Skip to content

DatePicker: ShowWeekNumbers#6071

Merged
stsrki merged 5 commits intomasterfrom
dev/DatePicker-ShowWeekNumbers
Apr 14, 2025
Merged

DatePicker: ShowWeekNumbers#6071
stsrki merged 5 commits intomasterfrom
dev/DatePicker-ShowWeekNumbers

Conversation

@tesar-tech
Copy link
Contributor

Description

Closes #6063

adds ShowWeekNumbers, docs and relase notes

@tesar-tech tesar-tech requested a review from stsrki April 12, 2025 16:30
@stsrki
Copy link
Collaborator

stsrki commented Apr 14, 2025

I'm trying to make DataPicker to toggle week numbers at runtime by it seems it wouldn't work.

Here is my code

<Field>
    <Button Color="Color.Primary" Clicked="@(() => showWeekNumbers = !showWeekNumbers)">
        Toggle Week Numbers
    </Button>
</Field>

<Field>
    <DatePicker TValue="DateTime?" ShowWeekNumbers="@showWeekNumbers" />
</Field>
@code {
    bool showWeekNumbers = true;
}

Did you try the same and that's why you only made it work on initialize only?

Copy link
Collaborator

@stsrki stsrki left a comment

Choose a reason for hiding this comment

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

I will go away and merge this anyways. For the update issue I will open new ticket on our new flatpickr repo and hopefully we will fix it in later iteration.

@stsrki stsrki changed the title DatePicker : ShowWeekNumbers DatePicker: ShowWeekNumbers Apr 14, 2025
@stsrki stsrki merged commit f20cb26 into master Apr 14, 2025
2 checks passed
@stsrki stsrki deleted the dev/DatePicker-ShowWeekNumbers branch April 14, 2025 08:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show WeekNumbers for DatePicker

2 participants