| HTML-FormFu-ExtJS documentation | Contained in the HTML-FormFu-ExtJS distribution. |
HTML::FormFu::ExtJS::Element::ExtJS::Panel
version 0.090
Moritz Onken <onken@netcubed.de>
This software is Copyright (c) 2011 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License
| HTML-FormFu-ExtJS documentation | Contained in the HTML-FormFu-ExtJS distribution. |
# # This file is part of HTML-FormFu-ExtJS # # This software is Copyright (c) 2011 by Moritz Onken. # # This is free software, licensed under: # # The (three-clause) BSD License # package HTML::FormFu::ExtJS::Element::ExtJS::Panel; BEGIN { $HTML::FormFu::ExtJS::Element::ExtJS::Panel::VERSION = '0.090'; } use strict; use warnings; use utf8; use HTML::FormFu::Util qw( xml_escape ); sub render { my $class = shift; my $self = shift; my $parent = $self->can("_get_attributes") ? $self : $self->form; my $title = $self->title || $self->label; return { xtype => $self->xtype, $title ? (title => xml_escape( $title )) : (), (scalar $self->id) ? (id => scalar $self->id) : (), items => $self->form->_render_items( $self ), $parent->_get_attributes( $self ) }; } 1; __END__