[Pas2js] element's css styling

Mr Bee pak.lebah at yahoo.com
Sun Oct 21 03:10:52 CEST 2018


Hi,
Can we set CSS style with Pascal syntax instead of pure string?
Example, instead of:
element['style'] := 'background-color: white;';

can we use this:
element.style.background.color := clWhite;

Thank you.

Regards,

–Mr Bee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20181021/8358b710/attachment.html>


More information about the Pas2js mailing list