| 1 | package Form::Factory::Control::Value; | ||
| 2 | 1 | $Form::Factory::Control::Value::VERSION = '0.022'; | |
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | with qw( | |
| 6 | Form::Factory::Control | ||
| 7 | Form::Factory::Control::Role::HiddenValue | ||
| 8 | Form::Factory::Control::Role::Labeled | ||
| 9 | Form::Factory::Control::Role::PresetValue | ||
| 10 | Form::Factory::Control::Role::ScalarValue | ||
| 11 | ); | ||
| 12 | |||
| 13 | # ABSTRACT: A read-only value control | ||
| 14 | |||
| 15 | |||
| 16 | 1 | has '+value' => ( | |
| 17 | required => 1, | ||
| 18 | ); | ||
| 19 | |||
| 20 | |||
| 21 | 1 | has is_visible => ( | |
| 22 | is => 'ro', | ||
| 23 | isa => 'Bool', | ||
| 24 | required => 1, | ||
| 25 | default => 0, | ||
| 26 | ); | ||
| 27 | |||
| 28 | 1 | __PACKAGE__->meta->make_immutable; | |
| 29 | |||
| 30 | __END__ | ||