Styling > Using Cascading Style Sheets > Customizing the Expansion of Business Objects

This use case shows how to customize the expansion of an object in the tree, the network and the equipment components.

In JViews TGO, the tree, the network and the equipment components are able to display containment relationships between the business objects. These relationships define a hierarchy of objects that can be later on displayed in the components. The object hierarchy is defined through a parent-child relationship set at the data source level. Although the containment relationship is defined at the data source level, it is still possible to specify, at the component level, whether a certain object will be graphically represented as a container or not.

This configuration is achieved using the following property:

Table 2.18 CSS Property for Expanding Business Objects
Property Name 
Type  
Default Value 
Description 
expansion 
IlpObjectExpansionType 
NO_EXPANSION in the network and equipment components 
IN_PLACE in the tree component 
Determines whether an object should be expandable, so that its children can be displayed.  
Possible values are: 
IN_PLACE 
IN_PLACE_MINIMAL_LOADING 
NO_EXPANSION 

The expansion property can be set for a business object with one of the following values:

How to Customize Node Expansion
object."ilog.tgo.model.IltNetworkElement" {
  expansion: NO_EXPANSION;
}
 
object."test.CustomObject" {
  expansion: IN_PLACE;
}