package HTML::FormFu::Element::Fieldset;
use strict;
use base 'HTML::FormFu::Element::Block';
use Class::C3;
__PACKAGE__->mk_output_accessors(qw/ legend /);
sub new {
my $self = shift->next::method(@_);
$self->tag('fieldset');
return $self;
}
sub render_data_non_recursive {
my $self = shift;
my $render = $self->next::method( {
legend => $self->legend,
@_ ? %{ $_[0] } : () } );
return $render;
}
1;
__END__
=head1 NAME
HTML::FormFu::Element::Fieldset - Fieldset element
=head1 SYNOPSIS
my $fs = $form->element( Fieldset => 'address' );
=head1 DESCRIPTION
Fieldset element.
=head1 METHODS
=head1 SEE ALSO
Is a sub-class of, and inherits methods from
L,
L
L
=head1 AUTHOR
Carl Franks, C
=head1 LICENSE
This library is free software, you can redistribute it and/or modify it under
the same terms as Perl itself.