1 package Reaction::UI::Widget::DisplayField;
3 use Reaction::UI::WidgetClass;
5 class DisplayField, which {
6 fragment widget [ qw/label value/ ];
7 fragment label [ string { $_{viewport}->label } ];
8 fragment value [ string { $_{viewport}->value } ];
17 Reaction::UI::Widget::DisplayField
25 Additional variables available in topic hash: "viewport".
27 Renders "label" and "field"
31 C<content> will contain the value, if any, of the field.
35 C<content> will contain the label, if any, of the field.
39 See L<Reaction::Class> for authors.
43 See L<Reaction::Class> for the license.