Skip to content

Commit 7c45e08

Browse files
authored
add format: time and date
1 parent 3add9bd commit 7c45e08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/brutusin-json-forms.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ if (typeof brutusin === "undefined") {
223223
// #46, problem in IE11. TODO polyfill?
224224
input.type = "text";
225225
}
226+
} else if (s.format === "date") {
227+
input.type = "date";
228+
} else if (s.format === "time") {
229+
input.type = "time";
226230
} else if (s.format === "email") {
227231
input.type = "email";
228232
} else if (s.format === "text") {

0 commit comments

Comments
 (0)