示例#1
0
 def header(self):
     if self.detail.display == 'short' or self.has_sort_node_for_nodeset_column(
     ):
         header = sx.Header(text=sx.Text(), width=self.template_width)
     else:
         header = super(HideShortHeaderColumn, self).header
     return header
示例#2
0
 def header(self):
     if self.detail.display == 'short':
         header = sx.Header(
             text=sx.Text(),
             width=self.template_width
         )
     else:
         header = super(HideShortHeaderColumn, self).header
     return header
示例#3
0
 def header(self):
     """
     header given for an invisible column to enable its display as a sort field in sort menu even
     when missing amongst display properties for case list headers
     refer: http://manage.dimagi.com/default.asp?232411
     """
     if self.sort_element and self.sort_element.has_display_values():
         header = sx.Header(text=sx.Text(locale_id=self.locale_id),
                            width=self.template_width)
     else:
         header = super(Invisible, self).header
     return header
示例#4
0
 def hidden_header(self):
     return sx.Header(
         text=sx.Text(),
         width=0,
     )
示例#5
0
 def header(self):
     header = sx.Header(text=sx.Text(locale_id=self.locale_id),
                        width=self.header_width)
     return header