MATSUNO★Tokuhiro > HTML-DateSelector > HTML::DateSelector

Download:
HTML-DateSelector-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source  

NAME ^

HTML::DateSelector - Generate HTML for date selector.

SYNOPSIS ^

    use HTML::DateSelector;
    HTML::DateSelector->ymd('start_on');

DESCRIPTION ^

generate HTML for date selector.

CLASS METHODS ^

ymd =head2 ym

    my $html = HTML::DateSelector->ymd('start_on');
    my $html = HTML::DateSelector->ym('start_on');

date selector.

ymd => year, month, day. ym => year, month.

year

    my $html = HTML::DateSelector->year('start_on');
    my $html = HTML::DateSelector->year('start_on', {start_on => 2000, end_on => 2005});

Year selector.You can set the span of year.

month =head2 day =head2 hour =head2 minute

  my $html = HTML::DateSelector->hour('start_on');
  my $html = HTML::DateSelector->minute('start_on');
  # and...

primitive selector.month, day, hour, minute.

OPTIONS ^

include_blank

you can select the blank.

plugin

  # todo:
  my $html = HTML::DateSelector->ymd('start_on', {plugin => 'DoJo'}); # or
  my $html = HTML::DateSelector->ymd('start_on', {plugin => [qw/DoJo/]});

use the plugin feature.

*** NOT IMPLEMENTED YET ***

AUTHOR ^

Tokuhiro Matsuno <tokuhiro __at__ mobilefactory.jp>

SEE ALSO ^

http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/helpers/date_helper.rb

LICENSE AND COPYRIGHT ^

Copyright (c) 2006, Tokuhiro Matsuno <tokuhiro __at__ mobilefactory.jp>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Ruby on Rails itself.