Created
April 3, 2018 07:24
-
-
Save maecha/a8d9110f3c3b7d501d82afc73005cdfd to your computer and use it in GitHub Desktop.
How to use TimePicker in AdminLTE ver2 (with Bootstrap 3.3.6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: | |
: | |
//= require admin-lte/plugins/timepicker/bootstrap-timepicker.min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready -> | |
$('#hogeTimePicker').timepicker({ | |
showMeridian: false, | |
defaultTime: false, | |
minuteStep: 1, | |
maxHours: 24 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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