Reaction::UI::Widget::Value - Reaction::UI::Widget::Value documentation


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::Widget::Value

DESCRIPTION

Top

This widget provides the return value of the vlues_string or value method on the viewport (depending on which is available first) via the value argument to widget.

INCLUDED SUBCLASSES

Top

Reaction::UI::Widget::Value::Boolean

Will simply display the value.

Reaction::UI::Widget::Value::Collection

This widget iterates over a collection of values provided by the viewport and renders an unordered list out of them.

Reaction::UI::Widget::Value::DateTime

A simple subclass of Reaction::UI::Widget::Value, currently not doing much.

Reaction::UI::Widget::Value::Image

Provides has_image and no_image blocks that will be rendered depending on the viewports value_string attribute. The defaults are to either render an image tag, or to output nothing at all.

Reaction::UI::Widget::Value::Number

A simple subclass of Reaction::UI::Widget::Value that doesn't do much yet.

Reaction::UI::Widget::Value::RelatedObject

A simple subclass of Reaction::UI::Widget::Value that doesn't do much yet.

Reaction::UI::Widget::Value::String

A simple subclass of Reaction::UI::Widget::Value that doesn't do much yet.

Reaction::UI::Widget::Value::Text

A simple subclass of Reaction::UI::Widget::Value that doesn't do much yet.

FRAGMENTS

Top

widget

Additional available arguments

value - The value_string or value of the viewport

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation Contained in the Reaction distribution.

package Reaction::UI::Widget::Value;

use Reaction::UI::WidgetClass;

use namespace::clean -except => [ qw(meta) ];


before fragment widget {
  if ($_{viewport}->can('value_string')) {
    arg value => $_{viewport}->value_string;
  } elsif($_{viewport}->can('value')) {
    arg value => $_{viewport}->value;
  }
};

__PACKAGE__->meta->make_immutable;


1;

__END__;