| Styling > Using Cascading Style Sheets > Customizing the Label in Table Cells |
Customizing the Label in Table Cells |
INDEX
PREVIOUS
NEXT
|
This use case shows you how to customize the label that represents an attribute in the table graphic component.
You can use the following CSS properties to customize the label used to represent an attribute in a table component:
This use case shows how to customize the representation of the attribute throughput in a table component.
<class>
<name>Element</name>
<superClass>ilog.tgo.model.IltNetworkElement</superClass>
<attribute>
<name>throughput</name>
<javaClass>java.lang.Integer</javaClass>
</attribute>
</class>
The following example shows how to customize the cell labels in the class Element.
object."Element/throughput" {
label: @throughput;
labelForeground: yellow;
labelBackground: red;
}
In this example, the value of throughput is automatically converted from Integer to String through the application type converter when the value of label is computed. Alternatively, you could use a format function (@|format) to obtain the same result. See CSS Expressions and Functions for more information.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |