I'm trying to test with this custom item and setting its value but I can't seem to show the value on the time item. When I ask for the timeItem's value after I have set it, it outputs correctly. Ultimately, I need to be able to set a value on both the time item as well as the static text item in my custom item.
Code:
isc.ClassFactory.defineClass("CwTimeItem", "CanvasItem");
isc.CwTimeItem.addProperties({
init:function () {
isc.DynamicForm.create({
numCols: 4,
fields: [
{name: this.name,
title: this.title,
type: "time",
value: this.value,
showHint: false,
},
{name: "message",showTitle: false,
defaultValue: "55ms",
_constructor: "StaticTextItem"
}
]
});
return this.Super("init", arguments);
}
});
isc.DynamicForm.create({
ID: "testForm",
numCols: 8,
fields: [{_constructor: "CwTimeItem", name: "testTime", title: "TEST",ID: "testTime",showTitle: false}]
});
testTime.setValue("12:30");
isc.warn(testForm.getValue("testTime"));
Comment