NAME

HTML::FormBuilder::FieldSet - FieldSet container used by HTML::FormBuilder

SYNOPSIS

my $form = HTML::FormBuilder->new(data => {id => 'testform});

my $fieldset = $form->add_fieldset({id => 'fieldset1'});

$fieldset->add_field({input => {type => 'text', value => 'Join'}});

$form->add_field($fieldset_index, {input => {type => 'text', value => 'Join'}});

Attributes

fields

The fields included by this fieldset.

Methods

build

my ($fieldset_group, $fieldset_html) = $fieldset->build();

add_field

$fieldset->add_field({input => {type => 'text', value => 'name'}});

append the field into fieldset and return that field

add_fields

$fieldset->add_fields({input => {type => 'text', value => 'name'}},{input => {type => 'text', value => 'address'}});

append fields into fieldset and return the number of fields added.

data

AUTHOR

Chylli mailto:chylli@binary.com

INHERITED METHODS

HTML::FormBuilder::Base

classes, localize

Moo::Object

BUILDALL, BUILDARGS, DEMOLISHALL, does, meta

CONTRIBUTOR

Fayland Lam mailto:fayland@binary.com

Tee Shuwn Yuan mailto:shuwnyuan@binary.com

COPYRIGHT AND LICENSE