igTimePicker
Namespace: Wisej.Web.Ext.Ignite
Assembly: Wisej.Web.Ext.Ignite (4.1.0.0)
The igTimePicker control is an editor with time-only input and a drop-down with listed hours:minutes values.
- C#
- VB.NET
public class igTimePicker : igBase
Public Class igTimePicker
Inherits igBase
Constructors
igTimePicker()
Constructs a new instance of the igTimePicker class.
Example:
The following example creates a time picker and configures it through the Options object.
var picker = new igTimePicker();
picker.Options.value = DateTime.Now;
picker.Options.timeInputFormat = "HH:mm";
picker.Size = new Size(150, 30);
this.Controls.Add(picker);
igTimePicker(options)
Constructs a new instance of the igTimePicker class using the specified options.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options passed to the igTimePicker widget: an anonymous object, a JSON string or a dynamic object. |
Example:
The following example creates a time picker that lists the time values in the drop-down in steps of 15 minutes.
var picker = new igTimePicker(new
{
value = DateTime.Today.AddHours(9),
timeInputFormat = "HH:mm",
itemsDelta = new { hours = 0, minutes = 15 }
});
picker.Size = new Size(150, 30);
this.Controls.Add(picker);