first commit

This commit is contained in:
2019-08-27 11:30:29 +02:00
commit b33b45ba80
7 changed files with 504 additions and 0 deletions

28
modules/FMDateInput.ts Normal file
View File

@ -0,0 +1,28 @@
import { FMAssignInterface } from './../Interfaces';
import FMInput from "../FMInput"
/**
*
* @class FMDateInput
* @extends {FMInput}
*/
export default class FMDateInput extends FMInput {
setValue(value: Date) {
this.element.valueAsDate = value
}
getValue(): Date {
return this.element.valueAsDate
}
getDefault(args: string): Date {
return new Date
}
}
export const FMDateInputAssignement: FMAssignInterface = {
input: FMDateInput,
type: "date",
tagName: "input"
}