A user interface for building definitions for angular-schema-form.
This repo is a response to Schema-Form Issue #304. At the moment it's really just a public design document to facilitat collaboration from the community of Schema-Form users.
builder-schema-key
form type is available for selecting the key
propertyFor the above to be possible, schema-form will have to be modified to allow an object to be used when registering a form type with a decorator:
// old style (should maintain backwards-compatibility)
schemaFormDecoratorsProvider.addMapping(
'bootstrapDecorator',
'datepicker',
'directives/decorators/bootstrap/datepicker/datepicker.html'
);
// new style defining title, description, schema, and form for configuration
schemaFormDecoratorsProvider.addMapping(
'bootstrapDecorator',
{
type: 'datepicker',
title: 'DatePicker',
description: 'Datepicker add-on for Angular Schema Form using pickadate!',
form: ['*'],
schema: {
type: 'object',
properties: {
minDate: {
type: ['string', 'null']
},
maxDate: {
type: ['string', 'null']
}
}
}
},
'directives/decorators/bootstrap/datepicker/datepicker.html'
);