HopObject.createInputParam (propName, param) |
creates parameter object that will be passed to
function that renders the input element |
Sourcecode in HopObject/objectFunctions.js:
1: function createInputParam(propName, param) { 2: param.name = propName; 3: // submitted values override property value 4: // but only if there were not multiple form elements 5: // with the same name submitted 6: if (!req.data[propName + "_array"] && req.data[propName] != null) 7: param.value = req.data[propName]; 8: else 9: param.value = this[propName]; 10: delete param.as; 11: return param; 12: } |