Chloro::Group - A field in a form
This class represents a group in a form.
This class has the following methods:
You'll probably make groups by using the
group() subroutine exported by Chloro,
but you can make one using this constructor.
The constructor accepts the following parameters:
The name of the group. This is required.
A more friendly version of the name.
This defaults to the same value as
An array reference of Chloro::Field objects for this group. This is required.
The name of the key field for repetitions.
This is an optional method on the field's form that will be used to extract this field's value.
The name as passed to the constructor.
A more friendly name,
which defaults to the same value as
Returns a list of Chloro::Field objects for this group
Given a name, returns the field of that name in the group, if one exists.
The name of the repetition key field for this group.
Returns a data structure representing the group definition. This exists primarily for testing.
This class consumes the Chloro::Role::FormComponent role.
Dave Rolsky <firstname.lastname@example.org>
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)