-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CSS variables in documentation
- Loading branch information
1 parent
6c72b81
commit 28cad6a
Showing
13 changed files
with
104 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 30 additions & 41 deletions
71
...b.Bootstrap.Documentation/Pages/Components/HxInputDateDoc/HxInputDate_Documentation.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,40 @@ | ||
@attribute [Route("/components/" + nameof(HxInputDate))] | ||
|
||
<ComponentApiDoc Type="typeof(HxInputDate<TValue>)"> | ||
<MainContent> | ||
<DocHeading Title="Basic usage" /> | ||
<Demo Type="typeof(HxInputDate_Demo)" Tabs="false" /> | ||
<DocHeading Title="Basic usage" /> | ||
<Demo Type="typeof(HxInputDate_Demo)" Tabs="false" /> | ||
|
||
<DocHeading Title="Calendar icon" /> | ||
<p> | ||
Optional icon can be added using <code>CalendarIcon</code> parameter.<br /> | ||
You can set the icon for all instances of <code>HxInputDate</code> by setting <code>HxInputDate.Defaults.CalendarIcon</code> static property. | ||
</p> | ||
<Demo Type="typeof(HxInputDate_Demo_CalendarIcon)" /> | ||
<DocHeading Title="Calendar icon" /> | ||
<p> | ||
Optional icon can be added using <code>CalendarIcon</code> parameter.<br /> | ||
You can set the icon for all instances of <code>HxInputDate</code> by setting <code>HxInputDate.Defaults.CalendarIcon</code> static property. | ||
</p> | ||
<Demo Type="typeof(HxInputDate_Demo_CalendarIcon)" /> | ||
|
||
<DocHeading Title="Clear button in calendar" Id="clear-button" /> | ||
<p>The <i>Clear</i> button in dropdown calendar can be hidden by setting <code>ShowClearButton="false"</code>.</p> | ||
<Demo Type="typeof(HxInputDate_Demo_ClearButton)" /> | ||
<DocHeading Title="Clear button in calendar" Id="clear-button" /> | ||
<p>The <i>Clear</i> button in dropdown calendar can be hidden by setting <code>ShowClearButton="false"</code>.</p> | ||
<Demo Type="typeof(HxInputDate_Demo_ClearButton)" /> | ||
|
||
<DocHeading Title="Sizes" /> | ||
<Demo Type="typeof(HxInputDate_Demo_InputSize)" /> | ||
<DocHeading Title="Sizes" /> | ||
<Demo Type="typeof(HxInputDate_Demo_InputSize)" /> | ||
|
||
<DocHeading Title="Dropdown calendar customization" Id="CalendarCustomization" /> | ||
<p> | ||
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class. | ||
The disabled days get <code>.disabled</code> class. | ||
</p> | ||
<DocAlert Type="DocAlertType.Warning"> | ||
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value. | ||
</DocAlert> | ||
<DocHeading Title="Dropdown calendar customization" Id="CalendarCustomization" /> | ||
<p> | ||
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class. | ||
The disabled days get <code>.disabled</code> class. | ||
</p> | ||
<DocAlert Type="DocAlertType.Warning"> | ||
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value. | ||
</DocAlert> | ||
|
||
<DocHeading Title="MinDate, MaxDate" Level="3" /> | ||
<p>You can limit the dropdown calendar values by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p> | ||
<Demo Type="typeof(HxInputDate_Demo_MinDateMaxDate)" /> | ||
<DocHeading Title="MinDate, MaxDate" Level="3" /> | ||
<p>You can limit the dropdown calendar values by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p> | ||
<Demo Type="typeof(HxInputDate_Demo_MinDateMaxDate)" /> | ||
|
||
<DocHeading Title="Calendar date customization" Level="3" /> | ||
<p> | ||
You can customize the dropdown calendar dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates | ||
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>. | ||
</p> | ||
<Demo Type="typeof(HxInputDate_Demo_CalendarDateCustomization)" /> | ||
</MainContent> | ||
<CssVariables> | ||
<ComponentApiDocCssVariable Name="--hx-input-date-dropdown-padding" Default="1rem"> | ||
Padding of the dropdown. | ||
</ComponentApiDocCssVariable> | ||
<ComponentApiDocCssVariable Name="--hx-input-date-calendar-margin-bottom" Default="0"> | ||
Margin bottom of the calendar. | ||
</ComponentApiDocCssVariable> | ||
</CssVariables> | ||
|
||
<DocHeading Title="Calendar date customization" Level="3" /> | ||
<p> | ||
You can customize the dropdown calendar dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates | ||
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>. | ||
</p> | ||
<Demo Type="typeof(HxInputDate_Demo_CalendarDateCustomization)" /> | ||
</ComponentApiDoc> |
82 changes: 35 additions & 47 deletions
82
...p.Documentation/Pages/Components/HxInputDateRangeDoc/HxInputDateRange_Documentation.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,39 @@ | ||
@attribute [Route("/components/" + nameof(HxInputDateRange))] | ||
|
||
<ComponentApiDoc Type="typeof(HxInputDateRange)"> | ||
<MainContent> | ||
<DocAlert Type="DocAlertType.Warning"> | ||
<code>HxInputDateRange</code> does not support additional <code>InputGroups</code>. Learn more about them <a href="/components/Inputs#InputGroups">here</a>. | ||
</DocAlert> | ||
|
||
<DocHeading Title="Basic usage" /> | ||
<Demo Type="typeof(HxInputDateRange_Demo)" Tabs="false" /> | ||
|
||
<DocHeading Title="Hide Clear button in calendars" Id="clear-button" /> | ||
<p>The <i>Clear</i> button in dropdown calendars can be hidden by setting <code>ShowClearButton="false"</code>.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_ClearButton)" /> | ||
|
||
<DocHeading Title="Predefined date ranges" /> | ||
<p>You can add predefined date ranges with <code>PredefinedDateRanges</code> parameter.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_CustomRanges)" /> | ||
<p>If you set <code>HxInputDateRange.Defaults.PredefinedDateRanges</code> default ranges for the whole application, you can hide them on individual instances with <code>ShowPredefinedDateRanges="false"</code>.</p> | ||
|
||
<DocHeading Title="Dropdown calendars customization" /> | ||
<p> | ||
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class. | ||
The disabled days get <code>.disabled</code> class. | ||
</p> | ||
<DocAlert Type="DocAlertType.Warning"> | ||
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value. | ||
</DocAlert> | ||
|
||
<DocHeading Title="MinDate, MaxDate" Level="3" /> | ||
<p>You can limit the dropdown calendars (both <i>From</i> and <i>To</i> together) enabled dates by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_MinDateMaxDate)" /> | ||
|
||
<DocHeading Title="Calendar date customization" Level="3" /> | ||
<p> | ||
You can customize the dropdown calendars' dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates | ||
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>. | ||
</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_CalendarDateCustomization)" /> | ||
|
||
</MainContent> | ||
<CssVariables> | ||
<ComponentApiDocCssVariable Name="--hx-input-date-range-dropdown-padding" Default="1rem"> | ||
Padding of the dropdown. | ||
</ComponentApiDocCssVariable> | ||
<ComponentApiDocCssVariable Name="--hx-input-date-range-calendar-margin-bottom" Default="0"> | ||
Margin bottom of the calendar. | ||
</ComponentApiDocCssVariable> | ||
</CssVariables> | ||
|
||
<DocAlert Type="DocAlertType.Warning"> | ||
<code>HxInputDateRange</code> does not support additional <code>InputGroups</code>. Learn more about them <a href="/components/Inputs#InputGroups">here</a>. | ||
</DocAlert> | ||
|
||
<DocHeading Title="Basic usage" /> | ||
<Demo Type="typeof(HxInputDateRange_Demo)" Tabs="false" /> | ||
|
||
<DocHeading Title="Hide Clear button in calendars" Id="clear-button" /> | ||
<p>The <i>Clear</i> button in dropdown calendars can be hidden by setting <code>ShowClearButton="false"</code>.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_ClearButton)" /> | ||
|
||
<DocHeading Title="Predefined date ranges" /> | ||
<p>You can add predefined date ranges with <code>PredefinedDateRanges</code> parameter.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_CustomRanges)" /> | ||
<p>If you set <code>HxInputDateRange.Defaults.PredefinedDateRanges</code> default ranges for the whole application, you can hide them on individual instances with <code>ShowPredefinedDateRanges="false"</code>.</p> | ||
|
||
<DocHeading Title="Dropdown calendars customization" /> | ||
<p> | ||
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class. | ||
The disabled days get <code>.disabled</code> class. | ||
</p> | ||
<DocAlert Type="DocAlertType.Warning"> | ||
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value. | ||
</DocAlert> | ||
|
||
<DocHeading Title="MinDate, MaxDate" Level="3" /> | ||
<p>You can limit the dropdown calendars (both <i>From</i> and <i>To</i> together) enabled dates by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_MinDateMaxDate)" /> | ||
|
||
<DocHeading Title="Calendar date customization" Level="3" /> | ||
<p> | ||
You can customize the dropdown calendars' dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates | ||
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>. | ||
</p> | ||
<Demo Type="typeof(HxInputDateRange_Demo_CalendarDateCustomization)" /> | ||
</ComponentApiDoc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters