[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
t:pane attributes for background coloring of even/odd rows  XML
Forum Index -> Development
Author Message
dperezlopez

Active

Joined: 23/01/2015 14:55:04
Messages: 18
Offline

Hi! Is there a way to have an even and odd t:row background color attributes in t:pane? Use case: Showing a bunch of data in lines in a tabular way. Currently we define those attributes in each and every row. Example in the image attached.

Thinking a bit further we could even have something more powerful for the first level children of the rows specified at t:pane level. Two properties: one for odd and other for even row children in which we would specify all attributes and values that we want to apply to the children. In simple scenarios like
t:pane > t:row > t:field/t:label
we could pass through the font weight, color, etc and if that subcomponent supports it, apply it automatically on CC side. That would save a ton of boilerplate in my opinion.

Thank you
[Thumb - pane_row_alternating_rowcolor.png]
 Filename pane_row_alternating_rowcolor.png [Disk] Download
 Description
 Filesize 14 Kbytes
 Downloaded:  94 time(s)


David
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5530
Offline

Hi David,

the coloring is a nice idea, we will pick this up and think about making it available in one of our next updates.

Extending it to a general "setting of attributes by some odd/even logic" in PANE: this is too specific to your scenario...! ;-) ...and would add a hell of complexity to the control definitions.

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
dperezlopez

Active

Joined: 23/01/2015 14:55:04
Messages: 18
Offline

Thanks Björn, I feared that the 2nd idea had some caveats attached only visible to the eyes of the implementer

David
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team