1 package Reaction::UI::Widget::Field::Mutable::Boolean;
3 use Reaction::UI::WidgetClass;
5 use namespace::clean -except => [ qw(meta) ];
6 extends 'Reaction::UI::Widget::Field::Mutable';
10 after fragment widget {
11 arg 'field_type' => 'checkbox';
14 implements fragment is_checked {
15 if ($_{viewport}->value_string) {
16 render 'is_checked_yes';
18 render 'is_checked_no';
22 __PACKAGE__->meta->make_immutable;
31 Reaction::UI::Widget::Field::Boolean
35 See L<Reaction::UI::Widget::Field>
39 See L<Reaction::Class> for authors.
43 See L<Reaction::Class> for the license.