NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on March 31, 2010, 03:30:55 AM
-
Hi
How to set options inside the tag of a button.
I would like to place my image after the value and put some more options on the tag.
Regards Niels
-
Hi Niels,
what button do you have in mind? Browse? Form?
One of my buttons or a custom button of yours?
cheers
Bruce
-
Hi Bruce
On a form I have a button. In some situations I would like to disable the button (not hide). In that case it would be nice to have the option to enter ex. disabled="disabled" or some other options in the tag.
Today i take the packet before send and modify it but i don't think thats a very smart way to do it :-(
/Niels
-
Hi Niels,
Ok, well first things first - I've added a template option so you can set an expression which sets the button disabled or not.
The createButton method supports a "disabled" parameter, so it makes sense to expose that as a template field.
That'll be in the next build.
In terms of adding "free form" extra html inside the tag, many form fields (although not buttons) support the loc:extra approach. I'll add that to buttons as well, although that may take a bit longer.
cheers
Bruce
-
Hi Bruce
That's greate! Just what i need.
Do you have an ETA of the next build ;-)
/Niels
-
Should be this weekend or Monday Niels...
cheers
Bruce
-
Super.
Now that you're about to update the templates it would be nice if you could insert "CSS Outer Div Class" in the DIV surounding the buttons in a form.
Have a nice weekend - once you get to it... ;-)