Project

General

Profile

Planck » History » Version 6

Version 5 (Anonymous, 13/04/2015 11:43) → Version 6/14 (Anonymous, 13/04/2015 11:43)

h1. Planck

h2. [[CreateFits]]



h2. [[Remove the url of an HTML page shown in the panel header]]

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:

!url_header.png!

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:
source:git_sitools_idoc|szcluster-db/workspace/client-user/js/components/dataviews/dataviewUtils.js@master#L403

<pre><code class="js">
showDisplayableUrl : function (value, isDisplayable, customConfig) {
if (isDisplayable) {
if (customConfig) {
var windowConfig = customConfig;
}
else {
var windowConfig = {
title : "Preview", //value,
id : value,
iconCls : "version"
};
}
}
</code></pre>

In the above example, the title of the panel has been set to 'Preview'.