AWV-1: Adding navigation of display sets
This commit is contained in:
1 parent
2cc06e454a
commit
0ec797a79c
9 files changed
+129
-32
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
<template name="displaySetNavigation">
|
||||
<div id="{{this.id}}"
|
||||
class="toolbarSectionButton rp-x-1 {{this.classes}} {{#if isPrevious}}js-prev{{else}}js-next{{/if}}"
|
||||
title="{{this.title}}">
|
||||
<div class="svgContainer">
|
||||
{{#if isPrevious}}
|
||||
<i class="fa fa-toggle-up fa-fw"></i>
|
||||
{{else}}
|
||||
<i class="fa fa-toggle-down fa-fw"></i>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="buttonLabel">
|
||||
{{#if isPrevious}}Previous{{else}}Next{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { Template } from 'meteor/templating';
|
||||
|
||||
Template.displaySetNavigation.events({
|
||||
'click .js-next'(event, instance) {
|
||||
OHIF.viewer.moveDisplaySet(true);
|
||||
},
|
||||
|
||||
'click .js-prev'(event, instance) {
|
||||
OHIF.viewer.moveDisplaySet(false);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user