Support for greater control over tr:table rows
----------------------------------------------
Key: TRINIDAD-698
URL: https://issues.apache.org/jira/browse/TRINIDAD-698
Project: MyFaces Trinidad
Issue Type: Wish
Components: Components
Affects Versions: 1.0.2-core
Reporter: Andrew Robinson
The tr:table currently renders row selection as check boxes and radio buttons
and does not provide a way to style selected rows.
I would like to see a way to have style selectors on table rows that include
selection.
Proposed new style selectors:
af|row::body
af|row::body-selected
af|row::header (not sure if this one would cause problems with
"af|column::row-header-text")
Supporting JavaScript row events would also be extremely helpful. For example,
if a user would like to use a list-selection style for table rows could do the
following:
1) set the af|column*icon* styles to display: none; (there by hiding the
checkbox/radio button for selection)
2) add onclick handler to the table's row elements
3) in that onclick handler, check for ctrl+click or just click (or maybe even
shift+click)
4) use javascript to find the radio or checkbox in the first column and
programmatically force its checked state based on click/ctrl+click/shift+click
5) trinidad at this point would be "expected" with the above requirement to
apply the "af|row-selected" style to these rows
I don't mind the implementation differing from this request, as long as the
capability is there to implement this row-click, a.k.a. style-selection method.
These row selectors could also be used to implement *:hover support in rows
(af|row-selected:hover) (or use onMouseOver/onMouseOut for those that need to
support IE6 w/o hover support)
maybe an equivalent control to trh:rowLayout could be used?
something like:
<tr:table>
<tr:row on*="">
<tr:column *>
</tr:row>
</tr:table>
this layout could allow developers to support mutiple-rows per data row:
<tr:table>
<tr:row>
<tr:column columnSpan="2">A</tr:column>
</tr:row>
<tr:row>
<tr:column>B</tr:column>
<tr:column>C</tr:column>
</tr:row>
</tr:table>
This may be a bit messy with the current column nesting support though...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.