Skip to content

Add clickability to all data rows when a default action is obvious (CO-1949) #28

merged 4 commits into from Oct 26, 2021

Conversation

arlen
Copy link
Contributor

@arlen arlen commented Oct 22, 2021

First, this PR allows us to generically add classes to any column in the index view (on both <th>s and <td>s) by including cssClass as a parameter on the column.

A "row-link" class on a linked column field will enable JavaScript to link an entire row to the URL found within the specified column's table cell. For example, <td class="row-link"><a href="someplace">some field</a></td> will cause the row containing that cell to be clickable, linking to "someplace".

Note that this is not enabled for the Matchgrid Records view (i.e. no column has the "row-link" class) because of usability issues when interacting with popovers.

@arlen arlen changed the title Feature co1949 @arlen Add clickability to all data rows when a default action is obvious (CO-1949) Oct 22, 2021
@arlen arlen changed the title @arlen Add clickability to all data rows when a default action is obvious (CO-1949) Add clickability to all data rows when a default action is obvious (CO-1949) Oct 26, 2021
@arlen arlen merged commit f2fb963 into COmanage:develop Oct 26, 2021
@arlen arlen deleted the feature-co1949 branch March 31, 2023 14:47
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
1 participant