added select-bool widget with options 0 => 'no',1 => 'yes'

--> can be used with nextmatch custom filter to filter by a boolean
column
This commit is contained in:
Ralf Becker 2009-09-28 12:51:18 +00:00
parent a47dab03a4
commit 90cba9cb0e

View File

@ -48,6 +48,7 @@ class select_widget
'select-number' => 'Select Number',
'select-app' => 'Select Application',
'select-lang' => 'Select Language',
'select-bool' => 'Select yes or no',
);
/**
* @var array
@ -125,6 +126,10 @@ class select_widget
$cell['sel_options'] = array('','low','normal','high');
break;
case 'select-bool': // equal to checkbox, can be used with nextmatch-customfilter to filter a boolean column
$cell['sel_options'] = array(0 => 'no',1 => 'yes');
break;
case 'select-access':
$cell['sel_options'] = array(
'private' => 'Private',