Skip to content

Fix weekNumbers update #2

@stsrki

Description

@stsrki

Blazorise PR Megabit/Blazorise#6071

We need to fix update of weekNumbers property so that it can be toggled dynamically

https://github.com/Megabit/Blazorise/blob/master/Source/Blazorise/wwwroot/datePicker.js#L340

Example

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions