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
48 Returns the viewport's C<event_id_for('value')>
52 Returns the viewport's C<event_id_for('value')>
58 Additional variables available in topic hash: "viewport", "id", "name".
60 Renders "label","field" and "message"
64 C<content> will contain the value, if any, of the field.
68 C<content> will contain the label, if any, of the field.
72 C<content> will contain the message, if any, of the field.
76 See L<Reaction::Class> for authors.
80 See L<Reaction::Class> for the license.