Skip to main content

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.

public class igTimePicker : igBase

Constructors​

Instance member 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);

Instance member igTimePicker(options)​

Constructs a new instance of the igTimePicker class using the specified options.

NameTypeDescription
optionsObjectInitial 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);

Implements​