Module: Railsstrap
- Defined in:
- app/helpers/railsstrap/navbar_helper.rb,
lib/railsstrap.rb,
lib/railsstrap/engine.rb,
lib/railsstrap/constants.rb,
app/helpers/railsstrap/breadcrumbs.rb,
app/helpers/railsstrap/icon_helper.rb,
app/helpers/railsstrap/glyph_helper.rb,
app/helpers/railsstrap/modal_helper.rb,
app/helpers/railsstrap/badge_label_helper.rb,
app/helpers/railsstrap/breadcrumbs_helper.rb,
app/helpers/railsstrap/date_picker_helper.rb,
app/helpers/railsstrap/form_errors_helper.rb,
app/helpers/railsstrap/bootstrap_flash_helper.rb,
lib/generators/railsstrap/layout/layout_generator.rb,
lib/generators/railsstrap/themed/themed_generator.rb,
lib/generators/railsstrap/install/install_generator.rb,
lib/generators/railsstrap/partial/partial_generator.rb
Overview
Railsstrap Datepicker Helper
Setup instructions: open your application.js & application.css asset manifest file and uncomment the block to include the UI libraries use the date_picker helper for the html and the date_picker_javascript helper in your templates
You can set these options a few ways: with html data-date-OPTIONNAME, or pass a data option hash into date_picker, but change the key name to_underscore format so content_tag renders the data tag properly. or in date_picker_javascript, keeping it as camelCase
pickDate: true, //en/disables the date picker pickTime: true, //en/disables the time picker useMinutes: true, //en/disables the minutes picker useSeconds: true, //en/disables the seconds picker useCurrent: true, //when true, picker will set the value to the current date/time minuteStepping:1, //set the minute stepping minDate:‘1/1/1900`, //set a minimum date maxDate: , //set a maximum date (defaults to today +100 years) showToday: true, //shows the today indicator language:’en’, //sets language locale defaultDate:“”, //sets a default date, accepts js dates, strings and moment objects disabledDates:[], //an array of dates that cannot be selected enabledDates:[], //an array of dates that can be selected icons =
time: 'glyphicon glyphicon-time',
date: 'glyphicon glyphicon-calendar',
up: 'glyphicon glyphicon-chevron-up',
down: 'glyphicon glyphicon-chevron-down'
useStrict: false, //use strict when validating dates sideBySide: false, //show the date and time picker side by side daysOfWeekDisabled:[] //for example use daysOfWeekDisabled: [0,6] to disable weekends
Defined Under Namespace
Modules: BadgeLabelHelper, BootstrapFlashHelper, Breadcrumbs, BreadcrumbsHelper, Constants, DatePickerHelper, FormErrorsHelper, Generators, GlyphHelper, IconHelper, ModalHelper, NavbarHelper Classes: Engine