Recent

Author Topic: change TJSHTMLButtonElement caption  (Read 347 times)

cappe

  • Jr. Member
  • **
  • Posts: 97
change TJSHTMLButtonElement caption
« on: August 07, 2019, 07:12:46 pm »
sorry, how do I change the caption (or value) of a
<input type = "button" class = "form-control" id = "btn1" value = "Pas 2 JS" />

combined with a: = TJSHTMLButtonElement (element html).

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: change TJSHTMLButtonElement caption
« Reply #1 on: August 08, 2019, 11:05:44 am »
sorry, how do I change the caption (or value) of a
<input type = "button" class = "form-control" id = "btn1" value = "Pas 2 JS" />

combined with a: = TJSHTMLButtonElement (element html).
According to the docs, HTMLButtonElement should have a value property, but it seems missing from the definition of TJSHTMLButtonElement. Perhaps you can report it, meanwhile add it by yourself to the class definition.

cappe

  • Jr. Member
  • **
  • Posts: 97
Re: change TJSHTMLButtonElement caption
« Reply #2 on: August 08, 2019, 07:15:19 pm »
Reporting as I do, via the pas2js mailing list?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: change TJSHTMLButtonElement caption
« Reply #3 on: August 09, 2019, 08:18:21 am »
Reporting as I do, via the pas2js mailing list?
I believe the bugtracker has an entry for pas2js.

cappe

  • Jr. Member
  • **
  • Posts: 97
Re: change TJSHTMLButtonElement caption
« Reply #4 on: August 09, 2019, 06:50:09 pm »
This morning I sent an email to pas2js mailing list and replied that it was added. Before reading your answer
« Last Edit: August 09, 2019, 06:52:09 pm by cappe »