Telegram_2023-12-11T12

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 12 > 11 >

Telegram_2023-12-11T12

Telegram link

 

2023-12-11T12:45:33

 

There are 2 properties that controls this:

 

RenderCDNFiles and RenderLocalFiles.

 

Switch RenderCDNFiles to false and RenderLocalFiles to True.

 

Then you can run it once in debug from the Delphi IDE and it will download all the needed files into your wwwroot folder (if you have internet connection).

 


 

Telegram link

 

2023-12-11T12:46:09

 

You also don't need to render it yourself. The component code will take care of it

 


 

Telegram link

 

2023-12-11T12:49:24

 

If you don't want your JS files directly under wwwroot folder (let's say you want it in wwwroot/scripts ) you can set the class var that controls this too:

 

TIWChartJS.LocalJavaScriptFolder := 'scripts';

 

LocalJavaScriptFolder is the subfolder name relative to wwwroot (remember that IW won't serve any file outside wwwroot, so it MUST be a subfolder relative to wwwroot always)

 


 

Telegram link

 

2023-12-11T12:50:23

 

The best place to put this is possibly in the ServerController.OnConfig event. Once it is a class var, it is global for all TIWChartJS instances of your application

 


 

Telegram link

 

2023-12-11T12:51:59

 

type: mention @Alex7691 Amazing ??

 

That's new to me .. thank you very much

 


 

Telegram link

 

2023-12-11T12:52:54

 

I'll give it a try ??

 


 

Telegram link

 

2023-12-11T12:55:29

 

Yes, some things are not well documented except in the release notes. All IW components that rely on external scripts (mostly jQuery UI stuff) have these properties and they work the same.

 

They also download the necessary files to your wwwroot folder (or subfolder if set in the class variable) the first time you run the project in debug, in case you have RenderLocalFiles = True