DateTimePicker
Description
Usage
@using Gap.Blazor
@using Gap.Blazor.Components
@using Telerik.Blazor.Components
@inherits WMControlComponentBase
@namespace Gap.Blazor.Components
<WMStyleBase model=@dateTimePicker></WMStyleBase>
<div class="@dateTimePicker.GetStringClasses()">
@if(dateTimePicker.ShowCheckBox == true)
{
<TelerikCheckBox @bind-Value="@dateTimePicker.Checked"></TelerikCheckBox>
}
<TelerikDatePicker class="@(!dateTimePicker.Checked ? "k-unchecked" : "" )"
@bind-Value="@dateTimePicker.Value"
Format="@convertToTelerikFormat()"
OnChange=@dateTimePickerOnChange
OnOpen="@updateCheckedValue">
</TelerikDatePicker>
</div>
<style>
[email protected]() {
display: inline-flex;
}
[email protected]() .k-checkbox-wrap {
margin-top: 5px;
}
[email protected]() .k-input-inner {
font-size: @dateTimePicker.Font.GetFontSize();
}
[email protected]() .k-input-button {
width: 20px;
}
.k-datetimepicker.k-unchecked .k-input-inner {
pointer-events: none;
opacity: 0.6;
filter: grayscale(0.1);
}
</style>
Properties
Methods
Dynamic Rendering
Styles
Events
Last updated