Beispiel #1
0
 def buildBlock(self, b):
     colClass = TX.col2Class('graph')
     s = self.style
     b.block(self)
     b.div(class_=colClass, float=s.graphFloat or self.LEFT, width=s.graphWidth or Perc(100))
     b._div(comment=colClass)
     b._block(self)
Beispiel #2
0
 def getColClass(self, col):
     u"""Answer the colClass, based on the numeric <i>col</i> value and if the component is the
     last in the parent list of child components."""
     colClass = TX.col2Class(col)
     if self.parent.isLast(self):
         colClass = (colClass, C.CLASS_LAST)
     return colClass
Beispiel #3
0
 def buildBlock(self, b):
     colClass = TX.col2Class('graph')
     s = self.style
     b.block(self)
     b.div(class_=colClass,
           float=s.graphFloat or self.LEFT,
           width=s.graphWidth or Perc(100))
     b._div(comment=colClass)
     b._block(self)