tweak add_domain_model to default attribute metaclass rather than forcibly construct...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Mutable / Boolean.pm
CommitLineData
2f670e13 1package Reaction::UI::Widget::Field::Mutable::Boolean;
2
3use Reaction::UI::WidgetClass;
4
5class Boolean is 'Reaction::UI::Widget::Field::Mutable', which {
6
7 implements fragment is_checked {
8 if ($_{viewport}->value) {
9 render 'is_checked_yes';
10 } else {
11 render 'is_checked_no';
12 }
13 };
14
15};
16
171;
18
19__END__;
20
21=head1 NAME
22
23Reaction::UI::Widget::Field::Boolean
24
25=head1 DESCRIPTION
26
27See L<Reaction::UI::Widget::Field>
28
29=head1 AUTHORS
30
31See L<Reaction::Class> for authors.
32
33=head1 LICENSE
34
35See L<Reaction::Class> for the license.
36
37=cut