HTML::FormFu::ExtJS::Element::Textarea - Textarea element


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

Index


Code Index:

NAME

Top

HTML::FormFu::ExtJS::Element::Textarea

VERSION

Top

version 0.090

DESCRIPTION

Top

You can either use the standard html textarea element or use the ExtJS WYSIWYG editor:

  - type: Textarea 

  - type: Textarea
    attrs_xml:
      wysiwyg: 1

NAME

Top

HTML::FormFu::ExtJS::Element::Textarea - Textarea element

SEE ALSO

Top

HTML::FormFu::Element::Textarea

COPYRIGHT & LICENSE

Top

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::ExtJS::Element::Textarea;
BEGIN {
  $HTML::FormFu::ExtJS::Element::Textarea::VERSION = '0.090';
}

use base "HTML::FormFu::ExtJS::Element::_Field";

use strict;
use warnings;
use utf8;

sub render {
	my $class = shift;
	my $self = shift;
	my $super = $class->SUPER::render($self);
	if($self->{attributes}->{wysiwyg}) {
	return { %{$super}, xtype => "htmleditor" };
	}
	return { %{$super}, xtype => "textarea" };
	
	
}

1;


__END__