Vulcan/packages/telescope-blank/lib/custom_fields.js

15 lines
549 B
JavaScript
Raw Normal View History

2014-12-11 12:07:41 +09:00
// Custom Post Property
var customProperty = {
propertyName: 'customProperty',
propertySchema: {
2014-12-11 12:07:41 +09:00
type: String, // property type
label: 'customLabel', // key string used for internationalization
optional: true, // make this property optional
autoform: {
2014-12-11 12:07:41 +09:00
editable: true, // make this property editable by users
type: "bootstrap-datetimepicker" // assign a custom input type
}
}
}
2015-01-01 18:47:11 +09:00
addToPostSchema.push(customProperty);