Commit 18dc2a99 authored by joshua-gould's avatar joshua-gould

added closeable option

parent 235d5d8c
...@@ -198,6 +198,10 @@ morpheus.HeatMap = function(options) { ...@@ -198,6 +198,10 @@ morpheus.HeatMap = function(options) {
keyboard : true, keyboard : true,
inlineTooltip : true, inlineTooltip : true,
$loadingImage : $('<div style="overflow:hidden;text-align:center;"><i class="fa fa-spinner fa-spin fa-3x"></i><span style="padding-left:4px;vertical-align:middle;font-weight:bold;">Loading...</span></div>'), $loadingImage : $('<div style="overflow:hidden;text-align:center;"><i class="fa fa-spinner fa-spin fa-3x"></i><span style="padding-left:4px;vertical-align:middle;font-weight:bold;">Loading...</span></div>'),
/**
* Whether this heat map tab can be closed
*/
closeable : true,
toolbar : { toolbar : {
zoom : true, zoom : true,
tools : true, tools : true,
...@@ -298,7 +302,7 @@ morpheus.HeatMap = function(options) { ...@@ -298,7 +302,7 @@ morpheus.HeatMap = function(options) {
var tab = this.tabManager.add({ var tab = this.tabManager.add({
$el : this.$content, $el : this.$content,
closeable : true, closeable : this.options.closeable,
rename : true, rename : true,
title : this.options.name, title : this.options.name,
object : this, object : this,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment