GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REACTION::UI::WIDGETCLASS (3)

.ds Aq ’

NAME

Reaction::UI::WidgetClass - Create a new widget class

CONTENTS

DESCRIPTION

Turns the importing package into a widget class. It will export:
All of Moose
All of Reaction::Class
strict and warnings
See ‘‘EXPORTS’’ for this package’s own exports
It will also set the value of default_base as new superclass. The default is Reaction::UI::Widget.

EXPORTS

    over



  over $collection



Used in combination with render to render a fragment for a series of values:



  render fragment_name => over [1, 2, 3];



    render



  render $fragment_name;
  render $fragment_name, $over;



With only the fragment name as argument, it renders that fragment. If an $over collection is specified with the over keyword, the fragment is rendered once for every value in the collection. The value will be accessible in the topic argument _.

    arg



  arg $arg_name, $arg_value;



Sets the fragment argument $arg_name to $arg_value;

    localized



  localize $value;



Calls the view’s localize method to localize the passed value.

    call_next



  call_next;



Calls the parent fragment.

    event_id



  event_id $event_name;



Fetches the event id for the event $event_name from the viewport via its event_id_for method.

    event_uri



  event_uri \%events;



Returns an URI object with the event ids corresponding to the keys in the %events argument and the values being the values of the hash reference.

    attrs



  attrs \%attrs;



Builds a string of rendered element attributes out of the %attrs hash reference argument.

    implements



  implements fragment foo { ... };
  implements bar => sub { ... };



Implements a method or a fragment in the widget class.

    fragment



  fragment foo { ... };



Creates a new fragment named foo with a implementation in the block.

AUTHORS

See Reaction::Class for authors.

LICENSE

See Reaction::Class for the license.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REACTION::UI::WIDGETCLASS (3) 2010-10-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.