Atozed Forums
IWBS4 first app - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IWBS4 first app (/thread-2216.html)



IWBS4 first app - David1 - 12-31-2020

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


RE: IWBS4 first app - kudzu - 12-31-2020

Have you looked at the Bootstrap Demos? I will ask someone else to follow up further as well.


RE: IWBS4 first app - David1 - 01-03-2021

(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!


RE: IWBS4 first app - kudzu - 01-03-2021

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