Vulcan/packages/telescope-blank/lib/custom_fields.js
Sacha Greif 50fc3eb11a Merge branch 'namespace' of https://github.com/TelescopeJS/Telescope into namespace
# Conflicts:
#	lib/users.js
#	packages/telescope-base/lib/base.js
#	packages/telescope-base/package.js
#	packages/telescope-lib
2015-04-20 13:57:37 +09:00

16 lines
639 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
}
}
}
Posts.addToSchema(customProperty);