---------- Forwarded message ---------
From: <[email protected]>
Date: mer 5 lug 2017 alle 18:14
Subject: R: Flexjs + Javascript libraries
To: Alex Harui <[email protected]>


I was looking to integrate masonry.js to layout elements in a container.

Do you think it’s feasible?



Lorenzo



Inviato da Posta <https://go.microsoft.com/fwlink/?LinkId=550986> per
Windows 10



*Da: *Alex Harui <[email protected]>
*Inviato: *mercoledì 5 luglio 2017 18:10
*A: *[email protected]
*Oggetto: *Re: Flexjs + Javascript libraries



You can probably use COMPILE:JS, but there won't be any type-checking,

which is one of the reasons for Flex.  The API for a 3rd-party JS library

should be defined in a typedefs SWC.  We've made it easier to create such

a thing using @externs. See:



https://git-wip-us.apache.org/repos/asf/flex-sdk/repo?p=flex-tourjs.git;a=b

lob_plain;f=cordova/BatchScanner/BatchScanner/src/main/resources/top.html;h

b=refs/heads/develop



That example uses Cordova plugins, so inject_html isn't needed.  But our

own SWCs, like the CreateJS SWC use inject_html.  You can also use a

custom HTML template instead of inject_html.  Maybe we can work with

Lorenzo to create a good example for others.



HTH,

-Alex



On 7/5/17, 5:34 AM, "piotrz" <[email protected]> wrote:



>Hi Yishay,

>

>Can you use COMPILE::JS in end users application ?

>

>I think we need to provide example how end user can use external library

>here, without any kind of coding in our framework.

>

>Thanks,

>Piotr

>

>

>

>-----

>Apache Flex PMC

>[email protected]

>--

>View this message in context:

>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle

>x-users.2333346.n4.nabble.com%2FFlexjs-Javascript-libraries-tp15402p15404.

>html&data=02%7C01%7C%7C0dd9a530f4b042a2be8608d4c3a4b3e6%7Cfa7b1b5a7b344387

>94aed2c178decee1%7C0%7C0%7C636348559540648452&sdata=ruUOuSMC9FsJxMmTRaps1n

>7eFM7ifqLEeECGazvcW04%3D&reserved=0

>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to