NetTalk Central

Author Topic: Browse line item Classes and Identifiers for Selectors  (Read 3821 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Browse line item Classes and Identifiers for Selectors
« on: June 29, 2010, 11:35:20 AM »
Hi,
How / where do we put in class names and or Identifiers in each line of the browse so that the css class or identifer selector will be able to see it and color it appropriately for each COLUMN???
Thanks,
Ron Jolda

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse line item Classes and Identifiers for Selectors
« Reply #1 on: June 29, 2010, 11:04:31 PM »
Hi Ron,

your question is a tad ambiguous - can you refine it please?

it's possible to style each cell individually, and each column individually, but I'm not sure what you have in mind when you talk about rows and selectors. Maybe take a screen shot and scribble on it to show the effect you're after.

cheers
Bruce


rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: Browse line item Classes and Identifiers for Selectors
« Reply #2 on: June 30, 2010, 02:21:30 AM »
I need to be able to put in several levels of classes or Identifiers so that I can use CSS to :

1. Color table Rows depending on the Class or ID of the Row
2. Then color individual cells  on each row depending on 2 values for columns within the row......

So, the first part is getting the classes and identifiers for ROw and Column so that css can find them.
Thanks,
Ron Jolda


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse line item Classes and Identifiers for Selectors
« Reply #3 on: June 30, 2010, 05:43:18 AM »
>> So, the first part is getting the classes and identifiers for Row and Column so that css can find them.

no, I think this is perhaps slightly misleading.

The starting point, and the ending point, is simply to set the Css for the cell.
The setting on the template is an expression. So, I'd do something like;

choose(xxx > 100,'red','green')
if the choice was really simple, or something like

loc:cellclass
if the decision is somewhat complex.
Then right-click the procedure, choose source, search for loc:cellclass, and prime it in an embed right before it's used.

oh, and declare the loc:cellclass variable as a string.

Does that answer your question though?

cheers
Bruce

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: Browse line item Classes and Identifiers for Selectors
« Reply #4 on: June 30, 2010, 03:10:13 PM »
Hi Bruce,
This and the info on css in the documentation will get me started!
Thanks,
ROn