Jump to content

any tutorial on wrapping a JavaScript library into a UniGUI component?


Recommended Posts

Hello Sherzod,

Allow me to clarify.

Let's say I find a nice JavaScript component, for the sake of example, a notification bubble that vanishes after a while.

I would like to make a uniGUI component out of that, meaning I want to be able to programmatically create this component using Delphi code.

In the case of other components, I may even want to drop it at design-time.

So, a Delphi component (class) must be defined to "wrap" the underlying JavaScript code: I can now create my component object by simply "TMyNotification.Create (aOwner)".

this Delphi class may even be registered, so I can drop the component on the form, same as a TUniPanel.

 

I would like to better understand how to achieve this "wrapping", or the layer between Delphi code and JavaScript code, for some existing JavaScript component?

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...