ohif-viewer/Packages/reactive-form-controls/client/helpers/getSchema.js

14 lines
301 B
JavaScript

import { Template } from 'meteor/templating';
Template.registerHelper('getSchema', function(context) {
const instance = Template.instance();
if (!instance.currentSchema) {
return;
}
if (!context) {
return;
}
return instance.currentSchema.schema(context);
});