Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to use TimePicker in AdminLTE ver2 (with Bootstrap 3.3.6)
:
:
//= require admin-lte/plugins/timepicker/bootstrap-timepicker.min
$(document).ready ->
$('#hogeTimePicker').timepicker({
showMeridian: false,
defaultTime: false,
minuteStep: 1,
maxHours: 24
});
= form_for @hoge, url: hoges_path do |f|
= f.text_field :time,
id: 'hogeTimePicker',
class: 'form-control timepicker',
placeholder: '7:00'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment