2014-12-11 12:07:41 +09:00
|
|
|
// Custom Post Property
|
|
|
|
|
2014-12-08 10:28:56 +09:00
|
|
|
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
|
2014-12-08 10:28:56 +09:00
|
|
|
autoform: {
|
2014-12-11 12:07:41 +09:00
|
|
|
editable: true, // make this property editable by users
|
2015-01-02 18:16:26 +09:00
|
|
|
type: "bootstrap-datetimepicker", // assign a custom input type
|
|
|
|
omit: false // set to true to omit field from form entirely
|
2014-12-08 10:28:56 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-01-01 18:47:11 +09:00
|
|
|
addToPostSchema.push(customProperty);
|