Home > WebEOC > Admin Guide > Board Building Tips > Add Sortable Header Rows

Add Sortable Header Rows

Table of contents
No headers

To implement sortable headers for a board display, create a header row when building the board.

From the Board Editor, in the header row, place one of the listed buttons for each column above the column for the Name field.

Tip: To edit the code, change the ID to the name of the eocfield you want to sort by.

<td onmouseover="this.style.cursor='pointer';" title="Click to Sort" id="name" onclick="SortByField(event);">Name</td>

If a status field applies, place the following code above the code listed.

<td onmouseover="this.style.cursor='pointer';" title="Click to Sort" id="status" onclick="SortByField(event);">Current Status</td>

To verify the internal function is referenced, include the following code:

<script type="text/javascript" src="../boards/board_lib.js"></script>
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.