<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									LemonadeJS Wrapper - Third party packages				            </title>
            <link>https://quartexdeveloper.com/community/third-party-packages/lemonadejs-wrapper/</link>
            <description>Quartex Pascal Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 10 Sep 2026 01:29:15 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>LemonadeJS Wrapper</title>
                        <link>https://quartexdeveloper.com/community/third-party-packages/lemonadejs-wrapper/#post-15</link>
                        <pubDate>Sat, 18 Feb 2023 22:44:20 +0000</pubDate>
                        <description><![CDATA[Hello Qtxers,
Here is my wrapper of the tiny reactive Library LemonadeJS 
QTX is good and it&#039;s better to have reactive components.
LemonadeJS is easy to use and implementation in QTX is e...]]></description>
                        <content:encoded><![CDATA[<p>Hello Qtxers,</p>
<p>Here is my wrapper of the tiny reactive Library LemonadeJS (<a title="LemonadeJS" href="https://lemonadejs.net/v1/" target="_blank" rel="noopener">https://lemonadejs.net/v1/</a>). </p>
<p>QTX is good and it's better to have reactive components.</p>
<p>LemonadeJS is easy to use and implementation in QTX is even easier:</p>
<p>- Drop the component to the Designer. </p>
<p>- Set the JSONData proprety to set initial data for the component. It should be a valid JSON string.</p>
<pre contenteditable="false">{"checked": "true"}</pre>
<p>- Set the Template property of the component</p>
<pre contenteditable="false">&lt;div&gt;
Value of the Checkbox: &lt;span&gt;&lt;b&gt;{{self.checked}}&lt;/b&gt;&lt;/span&gt;. 
Try to modify state of the checkbox: 
&lt;input type='checkbox' @bind='self.checked' onclick='self.clickit()' /&gt;
&lt;/div&gt;</pre>
<p>- In the code, you can set add Data or Functions</p>
<pre contenteditable="false">Widget1.Data.clickit := procedure()
  begin
    var data := Lemonade.Get("My:Profile");  //See line 87 to see how to set data from another component
    data.username := "Changed from ClickIt Procedure";
    asm console.log("Trying to change data.username in the Widget 2"); end;
  end;</pre>
<p><span style="text-decoration: underline">NB</span>: Use Lemonade.Get("") and Lemonade.Set("", data) to communicate with other LemonadeJSComponent.</p>
<p><span style="font-size: 14pt">Link to download the package and demo: <a href="https://drive.google.com/drive/folders/1YoIPaw4moqdHxk4DHuVjbxyoaXaX1Obc?usp=share_link" target="_blank" rel="noopener">https://drive.google.com/drive/folders/1YoIPaw4moqdHxk4DHuVjbxyoaXaX1Obc?usp=share_link</a></span></p>
<p><span style="color: #ff6600">If you like what I do and want to motivate me to wrap another libs, you can donate with paypal (every donation will be shared with Jon Aasenden): <a style="color: #ff6600" href="https://paypal.me/rtolivier" target="_blank" rel="noopener">https://paypal.me/rtolivier</a>. Thank you so much, no amount is too small ;)</span></p>
<p>Cheers,</p>
<p>Toky Olivier RAZANAKOTONARIVO</p>]]></content:encoded>
						                            <category domain="https://quartexdeveloper.com/community/third-party-packages/">Third party packages</category>                        <dc:creator>RTOlivier</dc:creator>
                        <guid isPermaLink="true">https://quartexdeveloper.com/community/third-party-packages/lemonadejs-wrapper/#post-15</guid>
                    </item>
							        </channel>
        </rss>
		