Plugins - Time Picker

StarAdd to favorites

TimePicker

====

Installation


Use either

script/plugin install svn://rubyforge.org/var/svn/timepicker/trunk

or

svn propset svn:externals ‘timepicker svn://rubyforge.org/var/svn/timepicker/trunk’ vendor/plugins

Usage


The usage of time_picker follows closely of that of ActionView::Helpers::DateHelper.

Once installed, use it in your views.

Right now, the only method is

time_picker(datetime, options = {})

Examples


To use a time_picker with the default 24 hour format, 30 minute step,

time_picker(Time.now, {:minute_step => 30})

To use a time_picker with 12 hour format, 30 minute step,

time_picker(Time.now, {:time_format => ‘12’, :minute_step => 30})

Other options (same as ActionView::Helpers::DateHelper) are:

  • :prefix
  • :field_name
  • :time_separator

Thong Kuah

http://rubyforge.org/projects/timepicker/

http://timepicker.rubyforge.org/svn/trunk/

Rails' (MIT)

  • Currently 2.4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment
Jaminos 28 Sep 2007
not works with me. I have an error msg : undefined method `time_picker' any idea ?

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?