[Pas2js] fieldset (or other tag) change the disabled attribute
Michael Van Canneyt
michael at freepascal.org
Thu Sep 29 21:02:15 CEST 2022
On Thu, 29 Sep 2022, Luca Olivetti via Pas2js wrote:
> El 29/9/22 a les 20:04, Michael Van Canneyt via Pas2js ha escrit:
>
>>
>> Stay as close as possible to the underlying element, so 'disabled' seems
>> best.
>
> OK, done
> https://gitlab.com/freepascal.org/fpc/pas2js/-/merge_requests/24
Thank you!
>
>>
>>>
>>> The second question (T*Widgets vs. TJSHTMElements) is still unanswered ;-)
>>
>> It cannot be answered in general: it depends on your needs.
>>
>> For more complicated projects I personally use the widgets because they
>> automate
>> many tasks.
>
> Too much: I just had to change a TImageWidget to a TJSHTMLImageElement
> because the former set the width and height of the img element to 0 :-(
I probably didn't notice since I always have set the sizes.
But I'll change the implementation to ignore 0 sizes.
Michael.
More information about the Pas2js
mailing list