The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTML::Widget::Element::DoubleSelect - JSAN Widget.Select Element

SYNOPSIS

my $e = $widget->element( 'JSAN::Widget::Select', 'foo' );
$e->comment('(Required)');
$e->label('Foo');

DESCRIPTION

JSAN Widget.Select Element.

If the users' JavaScript is disabled, they will see a plain Select element. If a value is set, the Textfield will contain that, otherwise it will contain the dateFormat string, but formatted like mm/dd/yyyy instead of %m/%d/%Y.

This Element inherits from HTML::Widget::Element::Select, so it's methods are available.

METHODS

js_options

This returns a hash-ref of options that will be passed to the js widget constructor.

Options that can be set are:

$self->prepare()

$self->containerize

Containerize the element, label and error for later rendering. Uses HTML::Widget::Container by default, but this can be over-ridden on a class or instance basis via container_class.

$self->mk_tag( $w, $tagtype, $attrs, $errors )

Creates a new tag.

$self->js_lib()

Returns the javascript library

SEE ALSO

HTML::Widget::JSAN, HTML::Widget, JSAN, JSAN::ServerSide

http://www.openjsan.org

AUTHOR

Jonas Alves, jonas.alves at gmail.com

LICENSE

Copyright 2006, Jonas Alves. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself (perlgpl, perlartistic).