Skip to content

Commit

Permalink
QCheckBoxList properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Sánchez authored and mikeho committed Oct 15, 2010
1 parent 735c3c0 commit 314fcb6
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions includes/qcodo/_core/qform/QCheckBoxList.class.php
@@ -1,25 +1,33 @@
<?php
// This class will render a List of HTML Checkboxes (inhereting from ListControl).
// By definition, checkbox lists are multiple-select ListControls.
// * "TextAlign" specifies if each ListItem's Name should be displayed to the left or to the right of the checkbox.
// * "CellPadding" specified the HTML Table's CellPadding
// * "CellSpacing" specified the HTML Table's CellSpacing
// * "RepeatColumn" specifies how many columns should be rendered in the HTML Table
// * "RepeatDirection" specifies which direction should the list go first...

// So assuming you have a list of 10 items, and you have RepeatColumn set to 3:
// RepeatDirection::Horizontal would render as:
// 1 2 3
// 4 5 6
// 7 8 9
// 10
//
// RepeatDirection::Vertical would render as:
// 1 5 8
// 2 6 9
// 3 7 10
// 4

/**
* This class will render a List of HTML Checkboxes (inhereting from
* ListControl). By definition, checkbox lists are multiple-select
* ListControls.
*
* @property string $TextAlign specifies if each ListItem's Name should be
* displayed to the left or to the right of the checkbox.
* @property integer $CellPadding specified the HTML Table's CellPadding
* @property integer $CellSpacing specified the HTML Table's CellSpacing
* @property integer $RepeatColumn specifies how many columns should be
* rendered in the HTML Table
* @property string $RepeatDirection specifies which direction should the
* list go first...
*
* So assuming you have a list of 10 items, and you have RepeatColumn set
* to 3:
*
* RepeatDirection::Horizontal would render as:
* 1 2 3
* 4 5 6
* 7 8 9
* 10
*
* RepeatDirection::Vertical would render as:
* 1 5 8
* 2 6 9
* 3 7 10
* 4
*/
class QCheckBoxList extends QListControl {
///////////////////////////
// Private Member Variables
Expand Down

0 comments on commit 314fcb6

Please sign in to comment.