Atozed Forums

Full Version: IWBS4 first app
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am exploring IWBoostrap 4 with IW 15.2.22 and delphi 10.4.1.

I created a new standalone IW project.
On the Unit1 form I put an IWBS4LayoutMgr, IWBS4Region and inside an IWBS4Button.
I copied the following lines form the IWBootstrap demo ServerController  - OnConfig event to my ServerController - OnConfig event handler:

CacheDir := ExtractFilePath(ParamStr(0)) + 'cache\';
JavaScriptOptions.RenderjQuery := False;
IWBS4LibSetCDNS;


When I ran the project I saw the button without any styling and inspecting the page with Chrome I saw that in page code there are no script references to any bootstrap libraries.

What I am doing wrong?

Thank you,
Davide
Have you looked at the Bootstrap Demos? I will ask someone else to follow up further as well.
(12-31-2020, 09:41 PM)kudzu Wrote: [ -> ]Have you looked at the Bootstrap Demos? I will ask someone else to follow up further as well.

I found the solution inspecting the code in the IWBootstap4 source folder.
The Javascript library are retrieved in the OnProcessForm of the IBBS4LayoutMgr component.
I did not assign the IWBS4LayoutMgr to the form and this way the library did not load.

I already had a walkthrough in the demo source code but I didn't take a look the IWBootstrap4 sources...

Thank you for your advice,
Davide

Happy new year!
Happy New Year! If you need further assistance please just let me know...