Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
connect css file to IWImage
#5
(07-13-2020, 08:59 AM)mazluta Wrote: how can i connect the css file to the IWImage

how the IW will generate the connection between the css file and the image - by name? by id?


Each IntraWeb control has a property named CSS. CSS receives the class name used in any external style, if applicable.

You can create a style for your class in your CSS file and use it in your IWImage control. Example:

< style.css file >
.myimageclass {

}


< in your pascal file >

IWImage.Css := 'myimageclass';


Add the css file to your form using ExtraHeader property of your form:

<link href="/style.css" rel="stylesheet">

and then copy the style.css file to the application's wwwroot folder. That's all.
Reply


Messages In This Thread
connect css file to IWImage - by mazluta - 07-13-2020, 08:59 AM
RE: connect css file to IWImage - by kudzu - 07-13-2020, 06:27 PM
RE: connect css file to IWImage - by mazluta - 07-13-2020, 07:10 PM
RE: connect css file to IWImage - by kudzu - 07-13-2020, 08:23 PM
RE: connect css file to IWImage - by Alexandre Machado - 07-17-2020, 06:50 AM
RE: connect css file to IWImage - by mazluta - 07-17-2020, 08:02 AM
RE: connect css file to IWImage - by kudzu - 07-17-2020, 06:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)