This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
pete (author)
Tue Mar 10 04:55:32 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
public/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README
BetterSelect
============
This simple plugin provides some helpers for, guess what?, a better select control. It can be used for any normal
select drop down
but has a specialized ability to produce a Time select field. The time select will be a single drop down
with values ranging from 12:00 AM to 12:00 PM to 11:45 PM in steps of 15.(TODO: make the interval configurable)
Why is it better you ask?
=========================
It uses prototype/scriptaculous to replace the standard html select with a text input field, so
you have full control over the styling and functionality of the select. Eventually, this
will support autocomplete(TODO)
Example
=======
1. include the js/stylesheets via helper
better_select_includes
or individually
better_select_javascript_include_tag
better_select_stylesheet_link_tag
2. Use it
A. generic select
better_select_tag 'post[author]', options_for_select([["Me", 0],["You", 1])
B. Time select
better_time_select_tag 'post[published_at]', @post.published_at
Credits
=======
Credits to Gabriel Lanzani (http://www.glanzani.com.ar)
for the js/stylesheets and all around great guy
Copyright (c) 2009 [Peter Philips], released under the MIT license








