Skip to content

Commit 9e3f016

Browse files
committed
Add info URL parameter
To change information string on the top of hpainter
1 parent ffdfc0c commit 9e3f016

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/JSROOT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ To automate files loading and objects drawing, one can provide number of URL par
5252
- palette - id of default color palette, 51..121 - new ROOT6 palette (default 57)
5353
- interactive - enable/disable interactive functions 0 - disable all, 1 - enable all
5454
- noselect - hide file-selection part in the browser (only when file name is specified)
55+
- info - information text displayed on the top of hierarchy browser
5556
- mathjax - use MathJax for latex output
5657
- latex - 'off', 'symbols', 'normal', 'mathjax', 'alwaysmath' control of TLatex processor
5758
- style - name of TStyle object to define global JSROOT style

modules/gui/HierarchyPainter.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3802,6 +3802,7 @@ class HierarchyPainter extends BasePainter {
38023802
browser_kind = 'float';
38033803

38043804
this.no_select = getOption('noselect');
3805+
this.top_info = getOption('info');
38053806

38063807
if (getOption('files_monitoring') !== null)
38073808
this.files_monitoring = true;
@@ -4092,7 +4093,7 @@ class HierarchyPainter extends BasePainter {
40924093

40934094
this.brlayout.setBrowserContent(guiCode);
40944095

4095-
const title_elem = this.brlayout.setBrowserTitle(this.is_online ? 'ROOT online server' : 'Read a ROOT file');
4096+
const title_elem = this.brlayout.setBrowserTitle(this.top_info || (this.is_online ? 'ROOT online server' : 'Read a ROOT file'));
40964097
title_elem?.on('contextmenu', evnt => {
40974098
evnt.preventDefault();
40984099
createMenu(evnt).then(menu => {

0 commit comments

Comments
 (0)