DBIx::HTMLView::Text - A multi line string filed |
DBIx::HTMLView::Text - A multi line string filed
$fld=$post->fld('testf'); print $fld->view_html;
This is a subclass of DBIx::HTMLView::Str used to represent larger texts. The main difference from a Str is that the default edit_html editor uses a <textarea>...</textarea> construct instead of an <input ...> tag.
This fld also has two parameters that are specified in the $data hash passed to the constructor (see the DBIx::HTMLView::Fld manpage). They are 'width', the width of the <textarea> editor in characters (defaults is 80) and 'height', the height of the <textarea> editor in characters (default is 50).
Except for the methods described in the superclasses (DBIx::HTMLView::Fld, DBIx::HTMLView::Field, DBIx::HTMLView::Str) there are also the following methods.
package DBIx::HTMLView::Text; use strict; use Carp;
use vars qw(@ISA); require DBIx::HTMLView::Text; @ISA = qw(DBIx::HTMLView::Str);
Returns the witdh in characters of the default edit_html editor.
Returns the height in characters of the default edit_html editor.
DBIx::HTMLView::Text - A multi line string filed |