patternfly
Version:
This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.
21 lines (20 loc) • 546 B
HTML
<div class="input-group time-picker-pf" id="{{include.id}}">
<input type="text" class="form-control">
<span class="input-group-addon btn btn-default">
<span class="fa fa-clock-o"></span>
</span>
</div>
<script>
$(function () {
$('#{{include.id}}').datetimepicker({
format: 'LT',
keyBinds: {
enter: function () {
$('#{{include.id}}').find('input').trigger('change');
this.hide();
}
}
});
$('#{{include.id}}').data('DateTimePicker').clear();
});
</script>