Commit e0f4c28d authored by jgould's avatar jgould

focus option

parent 1bf77b68
...@@ -180,6 +180,8 @@ morpheus.HeatMap = function (options) { ...@@ -180,6 +180,8 @@ morpheus.HeatMap = function (options) {
width: undefined, // set the available width for the width: undefined, // set the available width for the
// heat map. If not // heat map. If not
// set, it will be determined automatically // set, it will be determined automatically
/** Whether to focus this tab */
focus: true,
inheritFromParent: true, inheritFromParent: true,
inheritFromParentOptions: { inheritFromParentOptions: {
transpose: false transpose: false
...@@ -309,7 +311,7 @@ morpheus.HeatMap = function (options) { ...@@ -309,7 +311,7 @@ morpheus.HeatMap = function (options) {
rename: true, rename: true,
title: this.options.name, title: this.options.name,
object: this, object: this,
focus: true focus: this.options.focus
}); });
if (options.$loadingImage) { if (options.$loadingImage) {
options.$loadingImage.appendTo(this.$content); options.$loadingImage.appendTo(this.$content);
...@@ -388,7 +390,9 @@ morpheus.HeatMap = function (options) { ...@@ -388,7 +390,9 @@ morpheus.HeatMap = function (options) {
options.loadedCallback(_this); options.loadedCallback(_this);
} }
_this.tabManager.setActiveTab(tab.id); if (_this.options.focus) {
_this.tabManager.setActiveTab(tab.id);
}
_this.$el.trigger('heatMapLoaded', _this); _this.$el.trigger('heatMapLoaded', _this);
}; };
if (morpheus.Util.isArray(options.dataset)) { if (morpheus.Util.isArray(options.dataset)) {
......
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