This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 30, 2013, 12:33 PM
47 Posts
topic has been resolvedResolved

CSS in Repeat control

  • Category: Styles and Themes
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Repeat Control,CSS Alignment
  • Replies: 1

I create a repeat control for a view and it is working ok.  I want to have a style for a column that contains currency.
So i create a class for it with some CSS.

  
.colGrandTot {
   text-align:right;
   color:green;
   font-weight:bold;
}
.colPosted {
   text-align:right; 
}

  
In my computed field for the amount, I am calling my CSS like this:
var form = rowData.getColumnValue('Form');
if(form == 'Expense')
 return 'colGrandTot'
else
 return 'colPosted';

  
I have no problem with the color and the bold but the alignment is always left align.  In my original view it is right align.

  
I am sure that there is something so obvious that I don't see it.  But what? 
May 30, 2013, 12:54 PM
47 Posts
Re: CSS in Repeat control
Indeed it was obvious, I only change the alignement for the table cell and voila, right align.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal