Hello,
I’m using a dhtmlxForm and button like this :
formData = [{type: "button", value: 'Add', position:"absolute"},
{type: "button", value: 'Edit', position:"absolute", inputTop:25}]
is it possible to add an image to a button on dhtmlxForm ?
What’s up ?
Is it possible or not to add a image in a button of dhtmlxForm ?
Thx
Andrei
#3
Hello,
Try something like this:
{type: "button", value: "<img src='http://dhtmlx.com/docs/products/dhtmlxTree/codebase/imgs/csh_vista/folderClosed.gif' style='position:absolute;width:18px;height:18px;left:16px;'> <span style='margin-left:10px;'>Proceed</span>"}
Perfect !
it work great, thanks !

Solved
Manon
#5
I try this solution using XML initialisation :
but it doesnt work. I have a button with written in it :
Travail à effectuer
I want to make a big square button with an image in it and if possible a texte under the image.
Andrei
#6
Hi
try this:
you need to fix some styles and button bg images to change button height
Manon
#7
<?xml version="1.0" encoding="iso-8859-1"?>
This is my XML
And this is the result
hostingpics.net/viewer.php?i … hot035.jpg
Andrei
#8
hm, works fine localy
please provide direct link?
Manon
#9
Ok it works, it was a problem of cache. But I try with a litle image (10x10). How can I make a button 100x100?
Thank you.