added the hidden list field type
This commit is contained in:
parent
6ebf9c9ff3
commit
c15cfa954f
6 changed files with 190 additions and 196 deletions
|
|
@ -16,6 +16,7 @@ package WebGUI::Form::selectList;
|
|||
|
||||
use strict;
|
||||
use base 'WebGUI::Form::Control';
|
||||
use WebGUI::Form::hiddenList;
|
||||
use WebGUI::International;
|
||||
use WebGUI::Session;
|
||||
|
||||
|
|
@ -154,7 +155,23 @@ sub toHtml {
|
|||
return $output;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 toHtmlAsHidden ( )
|
||||
|
||||
Creates a series of hidden fields representing the data in the list.
|
||||
|
||||
=cut
|
||||
|
||||
sub toHtmlAsHidden {
|
||||
my $self = shift;
|
||||
return WebGUI::Form::hiddenList->new(
|
||||
value=>$self->{value},
|
||||
defaultValue=>$self->{defaultValue},
|
||||
name=>$self->{name},
|
||||
options=>$self->{options}
|
||||
)->toHtmlAsHidden;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue