The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Reaction::UI::Widget - The base widget.

DESCRIPTION

This is the base class for all widgets. It provides common functionality and fragments. It is also concerned with the rendering of the fragments.

FRAGMENTS

widget

This is the root fragment for every widget.

viewport

This fragment is used to render another viewport from inside a fragment. It assumes the viewport is stored in the _ argument.

ENVIRONMENT FLAGS

REACTION_UI_WIDGET_DEBUG_FRAGMENTS

Log additional debugging output for fragment processing.

REACTION_UI_WIDGET_DEBUUG_LAYOUTS

Log additional debugging output for layout processing.

ATTRIBUTES

view

The widget's view object. Is required, readonly and must be a Reaction::UI::View.

layout_set

The widget's layout set. Is required, readonly and must be a Reaction::UI::LayoutSet.

fragment_names

List of names of known fragments for the current widget. Lazily computed from all methods that are named in the pattern _fragment_$name.

basic_layout_args

A lazily built hash reference containing the rendered fragments defined in both the widget and the layout set, keyed by the fragments' names.

METHODS

render

  $widget->render('fragment_name', $reaction_ctx, \%passed_args);

This method is concerned with rendering a fragment.

SEE ALSO

AUTHORS

See Reaction::Class for authors.

LICENSE

See Reaction::Class for the license.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 187:

Unknown directive: =head