TimeSpanEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that the target property should use a "Time (HH:mm)" editor. The editor does not support editing seconds or milliseconds. It is a simple dropdown editor that allows selecting a time between StartHour and EndHour Note that this editor type returns a string value that is in format HH:mm. Use it only with TimeSpan typed fields. Use TimeEditor for integer fields.

[AttributeUsage(AttributeTargets.All)]
public class TimeSpanEditorAttribute : CustomEditorAttribute

Public Members

name description
TimeSpanEditorAttribute() Initializes a new instance of the TimeSpanEditorAttribute class.
EndHour { get; set; } Gets or sets the end hour between 0 and 23.
IntervalMinutes { get; set; } Gets or sets the interval minutes.
NoEmptyOption { get; set; } Gets or sets a value indicating whether empty option should be shown.
StartHour { get; set; } Gets or sets the start hour between 0 and 23.
const Key Editor type key

See Also