Skip to content

voltrb/volt-datepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volt::Datepicker

volt-datepicker provides a text field like in volt-fields that shows a datepicker below the fiend when clicked in.

Usage

First include the gem in the projects Gemfile:

gem 'volt-datepicker'

Next add volt-datepicker to a componentes dependencies.rb file:

component 'datepicker'

Pass a value to bind the field to.

<:datepicker value="{{ page._date }}" />

You can also pass a date-format attribute that will be passed to Time.strftime(..) when setting the date into the field.

<:datepicker value="{{ page._date }}" date-format="%Y-%m-%d" />

About

Provides a field that shows a date picker when selected.

Resources

Stars

Watchers

Forks

Packages

No packages published