The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Form::Factory::Control::Text - A single line text field

VERSION

version 0.001

SYNOPSIS

  has_control your_name => (
      control => 'text',
      options => {
          label         => 'Your Real Name',
          default_value => 'Thomas Anderson',
      },
  );

DESCRIPTION

A regular text box.

This control implements Form::Factory::Control, Form::Factory::Control::Role::Labeled, and Formfactory::Control::Role::ScalarValue.

ATTRIBUTES

value

The current value of the control.

default_value

The default value of the control.

stashable_keys

The "value" is stashed.

METHODS

current_value

If the "value" is set, use that. If the "default_value" is set use that. Otherwise, return the empty string.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2009 Qubling Software LLC.

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