HTML::FormFu::Element::ExtJS::Panel - FormFu class for ExtJS panels


HTML-FormFu-ExtJS documentation Contained in the HTML-FormFu-ExtJS distribution.

Index


Code Index:

NAME

Top

HTML::FormFu::Element::ExtJS::Panel

VERSION

Top

version 0.090

DESCRIPTION

Top

FormFu class for ExtJS panels.

NAME

Top

HTML::FormFu::Element::ExtJS::Panel - FormFu class for ExtJS panels

METHODS

Top

xtype Defaults to 'panel'

title, label Sets the title attribute of a panel. If both are given title has the higher priority.

SEE ALSO

Top

The ExtJS specific stuff is in HTML::FormFu::ExtJS::Element::ExtJS::Panel

AUTHOR

Top

Mario Minati, mario.minati@googlemail.com

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Top

Moritz Onken <onken@netcubed.de>

COPYRIGHT AND LICENSE

Top


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::Element::ExtJS::Panel;
BEGIN {
  $HTML::FormFu::Element::ExtJS::Panel::VERSION = '0.090';
}
use Moose;
extends 'HTML::FormFu::Element::Block';

__PACKAGE__->mk_output_accessors( qw( title label ) );

has xtype => ( is => 'ro', default => 'panel' );

sub render_data_non_recursive {
    my ( $self, $args ) = @_;

    my $render = $self->next::method( {
        title => $self->title,
        label => $self->label,
        xtype => $self->xtype,
        $args ? %$args : (),
    } );

    return $render;
}


# A special ExtJS Element, so no output in HTML forms

sub string {
    my ( $self, $args ) = @_;
    warn "Stringification is not supported for " . __PACKAGE__;

    return '';
}

sub tt {
    my ( $self, $args ) = @_;
    warn "Stringification is not supported for " . __PACKAGE__;

    return '';
}

1;




__END__