NAME
Tk::FormUI::Choices - A role common to all form fields with choices
VERSION
Version 0.2
SYNOPSIS
ATTRIBUTES
choices
Array of hash references representing the possible choices. The hash should have the following keys defined: label - Text to be displayed value - Value to return if item is selected
max_per_line
The maximum number of choices displayed per line
DEFAULT: 3
METHODS
valid_choices()
- Description
-
Verifies that all choices contain a label and value key
- Parameters
-
NONE
- Return
-
NONE
next_row_column($row, $col)
- Description
-
Increment the column and row if needed based on the field's settings
- Parameters
-
$row - The current row $col - The current column
- Return
-
ARRAY consisting of the new row and column
reset_row_column()
- Description
-
Reset the row and column to 0
- Parameters
-
NONE
- Return
-
NONE
AUTHOR
Paul Durden <alabamapaul AT gmail.com>
COPYRIGHT & LICENSE
Copyright (C) 2015 by Paul Durden.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.