Welcome! Log In Create A New Profile

Advanced

WebDev - Looper Cell Border Colour

WebDev - Looper Cell Border Colour
November 10, 2019 04:16AM
Hi All

How do I change the Cell Border in a Looper at runtime?

Cheers
André



Edited 1 time(s). Last edit at 11/10/2019 06:48AM by gpredl.
Re: WebDev - Looper Cell Border Colour
November 28, 2019 04:39PM
Hi,

It's doable via ..HTMClass

Example

- Add a CSS resource

.rectangle-1 {
	border-style: solid;
	border-color: blue;
	background-color: #FFFFE0;
}

.rectangle-2 {	
	border-color: #FF0000;
	background-color: #FFFFFF;	
}

Then set the class to the cell depending on whatever

IF bthis THEN 
	LooperTest[LooperTest].CellLooper..HTMLClass ="rectangle-1"	
ELSE
	LooperTest[LooperTest].CellLooper..HTMLClass ="rectangle-2"	
END


Re: WebDev - Looper Cell Border Colour
November 28, 2019 05:14PM
Thanks a ton Peter - never worked with CSS resources. This opens up a whole new world for manipulating the interface.

Andre
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: