mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
16 lines
No EOL
641 B
JavaScript
16 lines
No EOL
641 B
JavaScript
// Custom Post Property
|
|
|
|
var customProperty = {
|
|
propertyName: 'customProperty',
|
|
propertySchema: {
|
|
type: String, // property type
|
|
label: 'customLabel', // key string used for internationalization
|
|
optional: true, // make this property optional
|
|
autoform: {
|
|
editable: true, // make this property editable by users
|
|
type: "bootstrap-datetimepicker", // assign a custom input type
|
|
omit: false // set to true to omit field from form entirely
|
|
}
|
|
}
|
|
}
|
|
addToPostSchema.push(customProperty); |