Input handlers: with getType
- Edit the
getTypebinding method
getType: function getType(el) {
var dataType = $(el).data("data-type");
if (dataType === "date") return "OSUICode.textDate";
else if (dataType === "number") return "OSUICode.textNumber";
else return false; // Default behavior
},Note: To use the Shiny built-in handler, we could return “shiny.date” instead.