Merge pull request #21 from daviddelikat/master
textExtras in Combo object
This commit is contained in:
commit
63aa62b493
1 changed files with 20 additions and 1 deletions
|
|
@ -40,7 +40,25 @@ The following methods are specifically available from this class. Check the supe
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 definition ( session, [ additionalTerms ] )
|
||||||
|
|
||||||
|
Add another field so we can provide extras to the text area vs the selectBox
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub definition {
|
||||||
|
my $class = shift;
|
||||||
|
my $session = shift;
|
||||||
|
my $definition = shift || [];
|
||||||
|
push(@{$definition}, {
|
||||||
|
textExtras=>{
|
||||||
|
defaultValue=>undef
|
||||||
|
},
|
||||||
|
});
|
||||||
|
return $definition;
|
||||||
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -127,7 +145,8 @@ sub toHtml {
|
||||||
.WebGUI::Form::Text->new($self->session,
|
.WebGUI::Form::Text->new($self->session,
|
||||||
size=>$self->session->setting->get("textBoxSize")-5,
|
size=>$self->session->setting->get("textBoxSize")-5,
|
||||||
name=>$self->get("name")."_new",
|
name=>$self->get("name")."_new",
|
||||||
id=>$self->get('id')."_new"
|
id=>$self->get('id')."_new",
|
||||||
|
extras=>$self->get('textExtras'),
|
||||||
)->toHtml;
|
)->toHtml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue