Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWBS4 first app
#1
Question 
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
Reply
#2
Have you looked at the Bootstrap Demos? I will ask someone else to follow up further as well.
Reply
#3
(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!
Reply
#4
Happy New Year! If you need further assistance please just let me know...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)