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


Reaction documentation  | view source Contained in the Reaction distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

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

Top

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

Top

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

Top

render

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

This method is concerned with rendering a fragment.

SEE ALSO

Top

* Reaction::Manual::Widgets

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation  | view source Contained in the Reaction distribution.