Matthias Wronka created TOBAGO-1592:
---------------------------------------

             Summary: Support custom width on tc:column (using auto-layout)
                 Key: TOBAGO-1592
                 URL: https://issues.apache.org/jira/browse/TOBAGO-1592
             Project: MyFaces Tobago
          Issue Type: New Feature
    Affects Versions: 3.0.0-alpha-5
            Reporter: Matthias Wronka
            Priority: Minor


When a <tc:sheet> is defined without "columns"-attribute, the browser takes 
care of setting the column-width based on the content. The result is often what 
you want, but sometimes one could wish for a little more influence :-)

It should be possible to define a width for a column to overwrite the 
browser-behavior. This is useful e.g. if you have a table with select-boxes 
where you know (and want to limit) the width. This way a consistent look can be 
achieved, if similar tables are rendered more than once on a page.

The definition could be set using <tc:style>:
<tc:column label="some label>
   <tc:style width="150px"/>
   ....
</tc:column>

The renderer could render the width-attribute in the HTML-TD-Tag.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to