Class TimePickerEvents<TValue>
Specifies the TimePicker Events of the component.
Inheritance
Namespace: Syncfusion.Blazor.Calendars
Assembly: Syncfusion.Blazor.dll
Syntax
public class TimePickerEvents<TValue> : OwningComponentBase
Type Parameters
Name | Description |
---|---|
TValue | Specifies the type of TimePickerEvents. |
Constructors
TimePickerEvents()
Declaration
public TimePickerEvents()
Properties
Blur
Gets or sets the event callback that will be invoked when the component loses the focus.
Declaration
public EventCallback<BlurEventArgs> Blur { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<BlurEventArgs> |
Cleared
Gets or sets the event callback that will be invoked when the component value is cleared using clear button.
Declaration
public EventCallback<ClearedEventArgs> Cleared { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<ClearedEventArgs> |
Created
Gets or sets the event callback that will be invoked when the component is created.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Destroyed
Gets or sets the event callback that will be invoked when the component is destroyed.
Declaration
public EventCallback<object> Destroyed { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Focus
Gets or sets the event callback that will be invoked when the component gets focus.
Declaration
public EventCallback<FocusEventArgs> Focus { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<FocusEventArgs> |
OnClose
Gets or sets the event callback that will be invoked when the popup is closed.
Declaration
public EventCallback<PopupEventArgs> OnClose { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<PopupEventArgs> |
Examples
<SfTimePicker TValue="DateTime?">
<TimePickerEvents TValue="DateTime?" OnClose="@PopupClose" />
</SfTimePicker>
@code{
private void PopupClose(PopupEventArgs args) {
args.Cancel = true;
}
}
OnItemRender
Gets or sets the event callback that will be invoked while rendering the each popup list item.
Declaration
public EventCallback<ItemEventArgs<TValue>> OnItemRender { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<ItemEventArgs<TValue>> |
Examples
<SfTimePicker TValue="DateTime?">
<TimePickerEvents TValue="DateTime?" OnItemRender="@ItemRender" />
</SfTimePicker>
@code{
private void ItemRender(ItemEventArgs<DateTime?> args) {
Console.WriteLine(args.Text);
}
}
OnOpen
Gets or sets the event callback that will be invoked when the popup is opened.
Declaration
public EventCallback<PopupEventArgs> OnOpen { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<PopupEventArgs> |
Examples
<SfTimePicker TValue="DateTime?">
<TimePickerEvents TValue="DateTime?" OnOpen="@PopupOpen" />
</SfTimePicker>
@code{
private void PopupOpen(PopupEventArgs args) {
args.Cancel = true;
}
}
Selected
Gets or sets the event callback that will be invoked after selecting the value from the component.
Declaration
public EventCallback<SelectedEventArgs<TValue>> Selected { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<SelectedEventArgs<TValue>> |
Examples
<SfTimePicker TValue="DateTime?">
<TimePickerEvents TValue="DateTime?" Selected="@ValueSelected" />
</SfTimePicker>
@code{
private void ValueSelected(SelectedEventArgs<DateTime?> args) {
Console.WriteLine(args.Value);
}
}
ValueChange
Gets or sets the event callback that will be invoked when the component value is changed.
Declaration
public EventCallback<ChangeEventArgs<TValue>> ValueChange { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<ChangeEventArgs<TValue>> |
Examples
<SfTimePicker TValue="DateTime?">
<TimePickerEvents TValue="DateTime?" ValueChange="@ValueChange" />
</SfTimePicker>
@code{
private void ValueChange(ChangeEventArgs<DateTime?> args) {
Console.WriteLine(args.Value);
}
}
Methods
ComponentDispose(Boolean)
Declaration
protected void ComponentDispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
Triggers while initial rendering of the component.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task. |