Skip to content

Commit

Permalink
Added a new binding option called "title.showTitleDropDownButton", wh…
Browse files Browse the repository at this point in the history
…ich states if the drop-down arrow next to the title text should be shown (defaults to true).
  • Loading branch information
William Troup committed May 7, 2024
1 parent 5502783 commit de1b784
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 69 deletions.
5 changes: 4 additions & 1 deletion dist/heat.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@
if (bindingOptions.title.showText || bindingOptions.title.showYearSelector || bindingOptions.title.showRefreshButton || bindingOptions.title.showExportButton || bindingOptions.title.showImportButton) {
var titleBar = createElement(bindingOptions.currentView.element, "div", "title-bar"), title = createElement(titleBar, "div", "title");
if (bindingOptions.views.chart.enabled || bindingOptions.views.days.enabled || bindingOptions.views.statistics.enabled) {
createElement(title, "div", "down-arrow");
if (bindingOptions.title.showTitleDropDownButton) {
createElement(title, "div", "down-arrow");
}
} else {
addClass(title, "no-click");
}
Expand Down Expand Up @@ -1509,6 +1511,7 @@
options.title.showYearSelectionDropDown = getDefaultBoolean(options.title.showYearSelectionDropDown, true);
options.title.showImportButton = getDefaultBoolean(options.title.showImportButton, false);
options.title.showConfigurationButton = getDefaultBoolean(options.title.showConfigurationButton, true);
options.title.showTitleDropDownButton = getDefaultBoolean(options.title.showTitleDropDownButton, true);
return options;
}
function buildAttributeOptionDescription(options) {
Expand Down
Loading

0 comments on commit de1b784

Please sign in to comment.