App::Widget::DateField - An HTML text field
$name = "first_name"; # official way use App; $context = App->context(); $w = $context->widget($name); # OR ... $w = $context->widget($name, class => "App::Widget::DateField", size => 8, # from HTML spec maxlength => 18, # from HTML spec style => "mystyle", # from HTML to support CSS color => "#6666CC", # from CSS spec font_size => "10px", # from CSS spec border_style => "solid", # from CSS spec border_width => "1px", # from CSS spec border_color => "#6666CC", # from CSS spec padding => "2px", # from CSS spec background_color => "#ccffcc", # from CSS spec font_family => "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 App::Widget::DateField; $w = App::Widget::DateField->new($name);
This class is a <input type=text> HTML element.