[Pas2js] Nested objects

Michael Van Canneyt michael at freepascal.org
Thu Dec 10 11:13:19 CET 2020



On Thu, 10 Dec 2020, heliosroots wrote:

> Hi, have some way to quickly access nested objects (TJSObject).

We can create a class helper for that:

TJSObjectHelper = Class helper for TJSObject
   Find(const aPath : String) : JSValue;
   FindObject(const aPath : String) : TJSObject;
end;

What do you think ?

Michael.


More information about the Pas2js mailing list