Class: Bs_FormFieldSelect
Source Location: /core/html/form/Bs_FormFieldSelect.class.php
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$flipFlopObjName =
[line 193]
the name of the flipflop instance. if not specified then something will be made up.
Tags:
$flipFlopSettings =
[line 184]
for detals see the javascript class: Bs_FlipFlop.class.js
hash with the following keys:
fieldAvailableCssClass
fieldSelectedCssClass
textAvailable
textAvailableCssClass
textSelected
textSelectedCssClass
showCaptionLine
captionLineClass
moveOnDblClick
moveOnClick
maxSelectedNumber
maxSelectedWarning
buttonSelectAll and buttonDeselectAll:
can be set to false, which means they won't be used.
not more customization for these yet.
Tags:
$multiple =
[line 83]
if the user is able to select multiple values, not just one. $size needs to be >1 then. if not set it's FALSE. you can make this field use the js flipflop component. see $useFlipFlop.
Tags:
$optionsEval =
[line 143]
php code to be evaluated. has to return an array (hash or vector) that will be used for the option tags of this select field. the code is executed in $this->_prepareOptions() so it's in the scope of a method of this object. this means you can use vars from here etc. language dependant. ya know what i mean.
Tags:
$optionsHard =
[line 129]
the options that are selectable for the user.
the following data structures are allowed:
array('1'=>'one', '2'=>'two', '4'=>'four');
array('en'=>array('1'=>'one','2'=>'two','3'=>'three'), 'de'=>array('1'=>'eins','2'=>'zwei','3'=>'drei'), 'fr'=>array('1'=>'un','2'=>'deux','3'=>'trois'));
while these are not:
'one';
array('one', 'two', 'three');
array('en'=>'one', 'de'=>'eins', 'fr'=>'un');
array('en'=>array('one','two','three'), 'de'=>array('eins','zwei','drei'), 'fr'=>array('un','deux','trois'));
because it would not be possible to know the difference sometimes.
this means: even if you have only one default value, it must be an array.
WARNING: you always need key=>val, even if the key and the value is the same. you can use Bs_Array->copyValuesToKeys() to work around this.
Tags:
$optionsType =
[line 96]
how to fill in the option tags for this select field. one of 'eval' or 'hard'. if not set, the one var that is used is used :) if both are used (speaking of $optionsHard and $optionsEval) then $optionsHard is the default.
Tags:
$size =
[line 71]
how large the select field should be displayed. needs to be >1 for multiple. if not set it won't be written to the client, which equals to a value of '1'.
Tags:
$useFlipFlop = FALSE
[line 154]
for detals see the javascript class: Bs_FlipFlop.class.js
Tags:
Class Methods
|
|