Try this code in 9.1d (it is the standard SmartClient_Explorer.html#timeItem with added 'textBoxStyle' property)
There is a JS error with "getTextBoxStyle" function. If you manually change sources to avoid this error, then the same error is raised in "_sizeTextBoxAsContentBox". It seems that at this stage, "this.textField" doesn't exist yet.
Code:
isc.DynamicForm.create({
top: 15,
ID: "timeForm",
wrapItemTitles: false,
fields: [
{name: "textTime", title: "Time #1", type: "time", textBoxStyle: 'dummy'},
{name: "pickTime", title: "Time #2", type: "time",
minuteIncrement: 15,
useTextField: false}
]
});
isc.Button.create({
top: 100,
width: 125,
title: "Show Time Values",
getTime: function (itemName) {
var item = timeForm.getItem(itemName);
var inputTime = item.getValue();
return isc.Time.toTime(inputTime);
},
click: function () {
isc.say("Time #1: " + this.getTime("textTime") + "<br>" +
"Time #2: " + this.getTime("pickTime"));
}
});