Author: Lars Michelsen <[email protected]>
Date: Mon Apr 4 07:28:37 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Mon Apr 4 07:28:37 2011 +0200
Added notes about the new parameter gadget_type
---
docs/en_US/gadgets.html | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/docs/en_US/gadgets.html b/docs/en_US/gadgets.html
index 83d09fc..3598148 100644
--- a/docs/en_US/gadgets.html
+++ b/docs/en_US/gadgets.html
@@ -8,7 +8,7 @@
<h1>Gadgets</h1>
<h2>General Information</h2>
- <p>Gadgets are small programs which generate images from
information which
+ <p>Gadgets are small programs which generate images or HTML
code from information which
is provided by NagVis. The main idea is to provide the
performance data
of Nagios to these programs for visualizing it as nice
graphs or fancy
speedometers, thermometers etc.<br/>
@@ -18,6 +18,9 @@
<p>Gadgets are only supported for service objects. An object
can be turned
into a gadget by setting view_type="gadget"
and a valid gadget_url.</p>
<p>NagVis supports gadgets since version 1.4.<sup>[1]</sup></p>
+ <p>Since NagVis 1.6 the gadgets can not only render images. As
new option the gadgets
+ can render HTML code which might also contain javascript or any
kind of dynamic HTML code.
+ To enable the usage of HTML the option <code>gadget_type</code>
needs to be set to "html".</p>
<img src="../general/img/nagvis-1.4-gadget-label-hover.png"
alt="NagVis 1.4 std_speedometer gadget with label and hover menu" /><br />
<p style="font-size:0.8em;margin-top:0;"> NagVis 1.4
std_speedometer gadget on test map with enabled label.</p>
@@ -99,6 +102,7 @@
// gadget_url=[http://localhost/nagvis/userfiles/gadgets/std_bar.php]
// valid as well
// gadget_scale=200 // default is 100 (percent)
// gadget_opts=columns=3 label=1 // gadget dependent
+ // gadget_type=img // Defaults to img, can also be set to "html"
}</pre></p>
<h2>How to create a custom gadget</h2>
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins