Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/upstream/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wesProg23 committed Jun 15, 2023
2 parents 536904a + a800f76 commit 3ba5fa2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
</SectionContent>
</DocsPageSection>

<DocsPageSection>
<SectionHeader Title="Disable or customize days">
<Description>
By setting the <CodeInline>IsDateDisabledFunc</CodeInline> parameter, it's possibile to disable specific days and
by setting the <CodeInline>AdditionalDateClassesFunc</CodeInline> parameter it's possible to apply a custom class to specific days.
</Description>
</SectionHeader>
<SectionContent Code="DatePickerDisableCustomizeDaysExample" ShowCode="false" FullWidth="false">
<DatePickerDisableCustomizeDaysExample/>
</SectionContent>
</DocsPageSection>

<DocsPageSection>
<SectionHeader Title="Action Buttons">
<Description>You can add buttons by using the <CodeInline>PickerActions</CodeInline> render fragment. If <CodeInline>AutoClose</CodeInline> is set to true and PickerActions are defined, selecting a day will close the MudDatePicker.</Description>
Expand Down Expand Up @@ -139,4 +151,4 @@
</DocsPageSection>

</DocsPageContent>
</DocsPage>
</DocsPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@namespace MudBlazor.Docs.Examples

<MudDatePicker
Label="Not working days, sunday in red"
IsDateDisabledFunc="@((DateTime dt)=>((int)dt.DayOfWeek > 0 && (int)dt.DayOfWeek < 6))"
AdditionalDateClassesFunc="@((DateTime dt)=>((int)dt.DayOfWeek == 0 ? "red-text text-accent-4" : ""))"/>

0 comments on commit 3ba5fa2

Please sign in to comment.