|
P5EEx-Blue-0.01 | |||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||
![]() |
P5EEx::Blue::Widget::HTML::TextField |
P5EEx::Blue::Widget::HTML::TextField - An HTML text field
$name = "first_name";
# official way
use P5EEx::Blue::P5EE;
$context = P5EEx::Blue::P5EE->context();
$w = $context->widget($name);
# OR ...
$w = $context->widget($name,
widgetClass => "P5EEx::Blue::Widget::HTML::TextField",
size => 8, # from HTML spec
maxlength => 18, # from HTML spec
tabindex => 1, # from HTML spec
style => "mystyle", # from HTML to support CSS
color => "#6666CC", # from CSS spec
fontSize => "10px", # from CSS spec
borderStyle => "solid", # from CSS spec
borderWidth => "1px", # from CSS spec
borderColor => "#6666CC", # from CSS spec
padding => "2px", # from CSS spec
backgroundColor => "#ccffcc", # from CSS spec
fontFamily => "Verdana, Geneva, Arial", # from CSS spec
override => 1, # increase precedence of following options to "override" from "default"
#validate => "date", # not impl. yet ("date", "time", "datetime", "enum", "number", "integer", ":regexp")
#autocomplete => \@previous_choices, # not impl. yet
);
# internal way use P5EEx::Blue::Widget::HTML::TextField; $w = P5EEx::Blue::Widget::HTML::TextField->new($name);
This class is a <input type=text> HTML element.