[Pas2js] move property style to TJSElement :: feature request

Michael Van Canneyt michael at freepascal.org
Fri Nov 2 16:44:36 CET 2018



On Fri, 2 Nov 2018, warleyalex via Pas2js wrote:

> if I delete the public field "style" from the definition TJSHTMLElement and
> adds
> a public property "style" at the TJSElement class, it breaks the
> definition...,
> whatsoever, the TJSHTMLElement will access the property style any time,
> and we can "directly" do this, for instance:
>
> button1.Handle.style.setProperty('width', 'calc(100% - 20px)');

You must declare handle as TJSHTMLElement.

Michael.


More information about the Pas2js mailing list