made listview do paging and ordering and all sorts of stupid shit. nobody is welcome...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / DisplayField / DateTime.pm
index d6d0446..e403a9a 100644 (file)
@@ -2,26 +2,34 @@ package Reaction::UI::Widget::DisplayField::DateTime;
 
 use Reaction::UI::WidgetClass;
 
-class DateTime, which {
-  widget renders [ qw/label value/ => { viewport => func(self => 'viewport') } ];
-  label  renders [ string { $_{viewport}->label } ];
-  value  renders [ string { $_{viewport}->value_string } ];
+class DateTime is 'Reaction::UI::Widget::DisplayField', which {
+  value renders [ string { $_{viewport}->value_string } ];
 };
 
 1;
 
 __END__;
 
-=for layout widget
+=head1 NAME
 
-[% content %]
+Reaction::UI::Widget::DisplayField::DateTime
 
-=for layout label
+=head1 DESCRIPTION
 
-<strong > [ % content %]: </strong>
+See L<Reaction::UI::Widget::DisplayField>
 
-=for layout value
+=head1 FRAGMENTS
 
-[% content %]
+=head2 value
+
+C<content> contains the viewport's value_string
+
+=head1 AUTHORS
+
+See L<Reaction::Class> for authors.
+
+=head1 LICENSE
+
+See L<Reaction::Class> for the license.
 
 =cut