From 4214452471935f0e15de7e866b385fb4b4f26084 Mon Sep 17 00:00:00 2001
From: Ralf Becker
Date: Tue, 17 Sep 2002 12:29:01 +0000
Subject: [PATCH] added to have an image
instead of a button updated referenz.html
---
etemplate/doc/referenz.html | 13 +++++++++----
etemplate/inc/class.html.inc.php | 12 +++++++++---
etemplate/inc/class.uietemplate.inc.php | 9 ++++++---
etemplate/inc/class.xul_io.inc.php | 11 +++++++++++
4 files changed, 35 insertions(+), 10 deletions(-)
diff --git a/etemplate/doc/referenz.html b/etemplate/doc/referenz.html
index 613ca1471b..f67478bc99 100644
--- a/etemplate/doc/referenz.html
+++ b/etemplate/doc/referenz.html
@@ -427,15 +427,20 @@ implement only a subset of XUL. Here are the main differences:
Submitbutton
-
<button/>
+
<button image="img.gif" ro_image="img-grey.gif"/>
yes
button
a button to submit the form / end the dialog
- In the html-UI this is rendered as <input type="submit" ...>
- If onchanged is set and the user has JavaScript enabled
+ In the html-UI this is rendered as <input type="submit" ...>.
+ If a button is set readonly (via seting its id in the $readonlys array passed to exec) it is not rendered
+ at all (if no ro_image is given), like it would be diabled.
+ onChange xml: onchange: if set and the user has JavaScript enabled
the button is renderd as a link around the label and a hidden
- input to set if the link is clicked.
+ input to set id if the link is clicked.
+ Options xml: image, ro_image: Image to use instead of a Button with a label. There will
+ be no button around the image. If a ro_image is given (separated by a comma in the editors options)
+ it will be used if the button is set readonly (else the button is no rendered at all) .