Project

General

Profile

Planck » History » Version 5

Anonymous, 13/04/2015 11:43

1 1 Herve Ballans
h1. Planck
2 1 Herve Ballans
3 3 Herve Ballans
h2. [[CreateFits]]
4 4 Herve Ballans
5 5 Anonymous
h2. [[Remove the url of an HTML page shown in the panel header]]
6 5 Anonymous
7 5 Anonymous
When a static HTML file is embedded into a Sitools2 page, the URL of the file is shown to the public in the header of the panel:
8 5 Anonymous
9 5 Anonymous
!url_header.png!
10 5 Anonymous
11 5 Anonymous
In order to prevent this and/or to customize the text to display in the header, edit the @title@ attribute of the method @showDisplayableUrl()@, defined in the file:
12 5 Anonymous
source:git_sitools_idoc|szcluster-db/workspace/client-user/js/components/dataviews/dataviewUtils.js@master#L403
13 5 Anonymous
14 5 Anonymous
<pre><code class="js">
15 5 Anonymous
    showDisplayableUrl : function (value, isDisplayable, customConfig) {
16 5 Anonymous
        if (isDisplayable) {         
17 5 Anonymous
            if (customConfig) {
18 5 Anonymous
                var windowConfig = customConfig;
19 5 Anonymous
            }
20 5 Anonymous
            else {
21 5 Anonymous
                var windowConfig = {
22 5 Anonymous
                    title : "Preview", //value,
23 5 Anonymous
                    id : value, 
24 5 Anonymous
                    iconCls : "version"
25 5 Anonymous
                };
26 5 Anonymous
            }
27 5 Anonymous
}
28 5 Anonymous
</code></pre>
29 5 Anonymous
30 5 Anonymous
In the above example, the title of the panel has been set to 'Preview'.