1 package Reaction::UI::Widget::Field;
3 use Reaction::UI::WidgetClass;
7 before fragment widget {
8 if ($_{viewport}->can('value_string')) {
9 arg 'field_value' => $_{viewport}->value_string;
11 arg 'field_value' => ''; #$_{viewport}->value;
15 implements fragment label_fragment {
16 if (my $label = $_{viewport}->label) {
30 Reaction::UI::Widget::Field
38 Additional variables available in topic hash: "viewport", "id", "name".
40 Renders "label","field" and "message"
44 C<content> will contain the value, if any, of the field.
48 C<content> will contain the label, if any, of the field.
52 C<content> will contain the message, if any, of the field.
56 See L<Reaction::Class> for authors.
60 See L<Reaction::Class> for the license.