NetTalk Central

Author Topic: NT5 WS - code inside button tag?  (Read 4917 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
NT5 WS - code inside button tag?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT5 WS - code inside button tag?
« Reply #1 on: April 01, 2010, 01:16:15 AM »
Hi Niels,

what button do you have in mind? Browse? Form?
One of my buttons or a custom button of yours?

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: NT5 WS - code inside button tag?
« Reply #2 on: April 01, 2010, 05:07:11 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT5 WS - code inside button tag?
« Reply #3 on: April 01, 2010, 11:47:12 PM »
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


Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: NT5 WS - code inside button tag?
« Reply #4 on: April 02, 2010, 01:07:58 AM »
Hi Bruce

That's greate! Just what i need.
Do you have an ETA of the next build ;-)

/Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT5 WS - code inside button tag?
« Reply #5 on: April 02, 2010, 11:22:11 PM »
Should be this weekend or Monday Niels...

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: NT5 WS - code inside button tag?
« Reply #6 on: April 03, 2010, 03:56:09 AM »
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... ;-)