NAME

Term::Fabulous::Widget::Element - The Clay::UI roles behind Term::Fabulous::Widget

DESCRIPTION

An abstract class that composes the Clay::UI roles every container widget needs: Clay::UI::Role::Core::Container, the event roles, the layout roles and the background and border styles. It has no methods of its own.

Term::Fabulous::Widget inherits from it instead of composing the roles directly, because an Object::Pad class cannot override a method of a role it composes, while a subclass can override an inherited method. This lets Term::Fabulous::Widget accept every Term::Fabulous::Color format in background_color and border_color.

Do not subclass this class; subclass Term::Fabulous::Widget or one of its subclasses.

SEE ALSO

Term::Fabulous::Widget, Clay::UI.