|
@@ -13,7 +13,7 @@ interface SimpleFieldMetaData {
|
|
|
type?: string; // The component type e.g. BasicInput, Checkbutton, Timepicker, etc
|
|
|
label?: string; // The field label - defaults to unCamelCased name if not supplied
|
|
|
value?: any; // The field value - defaults to empty string if not supplied
|
|
|
- deafult?: any; // Default value
|
|
|
+ default?: any; // Default value
|
|
|
placeholder?: string; // Optional placeholder text
|
|
|
class?: string | Array<string>; // CSS classes to apply
|
|
|
id?: string; // CSS id to apply
|
|
@@ -38,7 +38,10 @@ interface DropdownModifiedInputFieldMetaData extends SimpleFieldMetaData {
|
|
|
}
|
|
|
|
|
|
interface TimePickerFieldMetaData extends SimpleFieldMetaData {
|
|
|
- // To add...
|
|
|
+ // TODO: Tighhten up om types
|
|
|
+ value: Date;
|
|
|
+ format: string;
|
|
|
+ steps: StringMap
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------
|
|
@@ -167,10 +170,10 @@ class CheckbuttonGroup {
|
|
|
// Kendo Form Component Models
|
|
|
|
|
|
class TimePickerField extends SimpleField {
|
|
|
- // To add...
|
|
|
- constructor(meta: TimePickerFieldMetaData) {
|
|
|
- super(meta);
|
|
|
- }
|
|
|
+ type = 'Timepicker';
|
|
|
+ value: Date = new Date();
|
|
|
+ format = 'HH:mm';
|
|
|
+ steps = { hour: 1, minute: 15 };
|
|
|
}
|
|
|
|
|
|
// ---------------------------------------------------------------------------------------------------------------------
|