Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 551 Bytes

highlight-table-row-if-checkbox-field-is-unchecked.md

File metadata and controls

19 lines (13 loc) · 551 Bytes

Highlight a table row if a checkbox field is unchecked

Purpose of this recipe

You have a table in your AppGini app that includes a checkbox field. In the table view, you want to highlight records where this checkbox field is unchecked.

Files to edit

hooks/footer-extras.php

<script>
  $j(function() {
    $j('.tablename-fieldname').find('.glyphicon-check').parents('tr').addClass('warning')
  })
</script>

Replace tablename and fieldname in the above code with the name of the table and the checkbox field, respectively.