AWV-3: Transforming the CINE inputs in form components
This commit is contained in:
1 parent
176b503c5a
commit
20b49d5036
15 files changed
+145
-38
No files matched your search
@@ -2,15 +2,9 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
import { Template } from 'meteor/templating';
|
||||
|
||||
/*
|
||||
* component: create the base structure to aplly specific component mixins
|
||||
* component: base component structure
|
||||
*/
|
||||
OHIF.mixins.component = new OHIF.Mixin({
|
||||
composition: {
|
||||
onCreated() {
|
||||
const instance = Template.instance();
|
||||
|
||||
// Declare a property that will be shared among all dependent mixins
|
||||
instance.component = new OHIF.Component(this);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -77,6 +77,16 @@ OHIF.mixins.schemaData = new OHIF.Mixin({
|
||||
data.label = new ReactiveVar(currentSchema.label);
|
||||
}
|
||||
|
||||
// Set the min value
|
||||
if (_.isUndefined(data.min) && currentSchema.min) {
|
||||
data.min = currentSchema.min;
|
||||
}
|
||||
|
||||
// Set the max value
|
||||
if (_.isUndefined(data.max) && currentSchema.max) {
|
||||
data.max = currentSchema.max;
|
||||
}
|
||||
|
||||
// Set the emptyOption data attribute if given on schema
|
||||
if (currentSchema.emptyOption) {
|
||||
data.emptyOption = currentSchema.emptyOption;
|
||||
|
||||
Reference in new issue
Block a user