Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgs committed Oct 4, 2024
1 parent 65bd134 commit 9234885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChoiceColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ protected function pageTop() {
$(choices).each(function(i, e) {
let r, c;
if (horizontal) {
// horizontal alignment -> across then down, r then c
r = Math.trunc(i / nCols);
c = i % nCols;
} else {
// vertical alignment -> down then across, c then r
c = Math.trunc(i / nRows);
r = i % nRows;
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Notes:
* The tag is ignored for radio and checkbox fields that are part of a matrix.
* Enhanced radio buttons and checkboxes are supported.
* Specify an integer in the range 1-99 for the number of columns. Any other value will cause the tag to be ignored and the field display default behaviour.
* Choices hidden through `@HIDECHOICE` or `@SHOWCHOICE` are removed from the column/row grid (i.e. there will not be blank placeholder spaces for hidden choices).
* Piping into the action tag *is* supported, but only on page load. It is not dynamic within a page (i.e. is similar to other tags like `@HIDECHOICE` and `@IF`).

********************************************************************************
Expand Down

0 comments on commit 9234885

Please sign in to comment.