Hi,
Does anyone know how to add filters to table headers (so that the user can filter a table using table data from each column)?
I'm struggling doing it with <select> and I've seen some ideal solutions in java but they don't seem to work for me (see below).
Any help greatly appreciated - v new to programming!
Thanks
Josh
my table views:
<table class="table", id=table1>
<tr>
<th>Assigned to</th>
<th>Type</th>
<th>Priority</th>
<th>Project</th>
<th>Task description</th>
<th>Attachments</th>
<th>Due Date</th>
</tr>
{{for row in rows:}}
<tr>
<td><a href="{{=URL('edittasklist', args=row.tasklist.id)}}">{{=row.auth_user.FullName}}</a></td>
<td>{{=row.tasklist.jobtype}}</td>
<td>{{=row.tasklist.priority}}</td>
<td>{{=row.tasklist.projectid}}</td>
<td>{{=row.tasklist.heading}}</td>
<td>{{=row.tasklist.attachment}}</td>
<td>{{=row.tasklist.duedate}}</td>
</tr>
{{pass}}
</table>
java:
- <script language="javascript" type="text/javascript">
- //<![CDATA[
- var table1_Props = {
- col_0: "select",
- on_change: false,
- btn: true,
- enter_key: false
- }
- var tf4 = setFilterGrid( "table1",table4_Props );
- //]]>
- </script>