removing silly debug statement from Image widget
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Value.pm
index 48d362d..b2498dd 100644 (file)
@@ -5,7 +5,11 @@ use Reaction::UI::WidgetClass;
 class Value, which {
 
   before fragment widget {
-    arg value => $_{viewport}->value_string;
+    if ($_{viewport}->can('value_string')) {
+      arg value => $_{viewport}->value_string;
+    } elsif($_{viewport}->can('value')) {
+      arg value => $_{viewport}->value;
+    }
   };
 
 };
@@ -24,13 +28,13 @@ Reaction::UI::Widget::Value
 
 =head2 widget
 
-Additional variables available in topic hash: "viewport".
+Additional available arguments
 
-Renders "label" and "field"
+=over 4
 
-=head2 field
+=item B<value> - The C<value_string> or C<value> of the viewport
 
- C<content> will contain the value, if any,  of the field.
+=back
 
 =head1 AUTHORS