fixup widgets to use fragment
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Value / Collection.pm
index 073911d..a91aa74 100644 (file)
@@ -3,9 +3,9 @@ package Reaction::UI::Widget::Value::Collection;
 use Reaction::UI::WidgetClass;
 
 class Collection, which {
-  widget renders [ qw/list/ =>  { viewport => func(self => 'viewport') } ];
-  list   renders [ item over func('viewport', 'value_names') ];
-  item   renders [ string { $_ } ];
+  fragment widget [ qw/list/ ];
+  fragment list   [ item over func('viewport', 'value_names') ];
+  fragment item   [ string {""} ], { value => $_ };
 };
 
 1;