logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Padma  
#1 Posted : Wednesday, October 23, 2019 6:54:15 PM(UTC)
Padma

Rank: Member

Groups: Registered
Joined: 10/21/2019(UTC)
Posts: 16
United States

I need to align-center the contents of the results table, The forum indicates to use the following:
Model > Select Element > Advanced > there is no custom css cell property
But I do not see the Custom CSS cell property; is there any other way to align the contents of the results table

This mostly applies to numeric values. The text values are aligning correctly

Edited by user Wednesday, October 23, 2019 6:56:16 PM(UTC)  | Reason: Not specified

epf  
#2 Posted : Thursday, October 24, 2019 7:54:12 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes, it has been moved to Cell Script, please check the Cell Script to change your CSS dynamically.

example to display negative values in red:
Code:
@using Seal.Model
@{
	//Display negative values in red and bold
	ResultCell cell=Model;
	ReportElement element = cell.Element;
	ReportModel reportModel = element.Model;
	Report report = reportModel.Report;
	if (cell.DoubleValue < 0)
	{
		cell.FinalCssStyle = "font-weight:bold;";
		cell.FinalCssClass = "danger lead text-right"; //These are Bootstrap classes
	}
}
Padma  
#3 Posted : Thursday, October 24, 2019 2:29:51 PM(UTC)
Padma

Rank: Member

Groups: Registered
Joined: 10/21/2019(UTC)
Posts: 16
United States

Thank you. I did use the Cell script and it worked as expected.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.