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.
Bugs may be submitted at http://rt.cpan.org/Public/Dist/Display.html?Name=Chloro or via email to firstname.lastname@example.org.
I am also usually active on IRC as 'autarch' on
The source code repository for Chloro can be found at https://github.com/autarch/Chloro.
Dave Rolsky <email@example.com>
This software is Copyright (c) 2017 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.