Files
ohif-viewer/Packages/ohif-hanging-protocols/client/components/matchedProtocols/matchedProtocols.js
T

20 lines
500 B
JavaScript
Raw Normal View History

2016-07-12 15:37:53 -03:00
import { OHIF } from 'meteor/ohif:core';
Template.matchedProtocols.helpers({
/**
* Reactively re-render the MatchedProtocols Collection contents
*/
matchedProtocols() {
return MatchedProtocols.find();
}
});
Template.matchedProtocols.events({
/**
* Instruct the ProtocolEngine to apply the specified Hanging Protocol
*/
'click .matchedProtocol': function() {
var protocol = this;
ProtocolEngine.setHangingProtocol(protocol);
}
});