Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pingcheng/bootstrap4-datetimepicker
datetimepicker for bootstrap 4
https://github.com/pingcheng/bootstrap4-datetimepicker
bootstrap4 bs4 datetimepicker
Last synced: 3 months ago
JSON representation
datetimepicker for bootstrap 4
- Host: GitHub
- URL: https://github.com/pingcheng/bootstrap4-datetimepicker
- Owner: pingcheng
- License: mit
- Fork: true (Eonasdan/tempus-dominus)
- Created: 2017-11-04T14:33:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T12:28:10.000Z (8 months ago)
- Last Synced: 2024-09-26T00:06:48.537Z (3 months ago)
- Topics: bootstrap4, bs4, datetimepicker
- Language: JavaScript
- Homepage: http://eonasdan.github.io/bootstrap-datetimepicker/
- Size: 3.34 MB
- Stars: 184
- Watchers: 15
- Forks: 114
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Datetimepicker for Bootstrap 4
[![Build Status](https://travis-ci.org/pingcheng/bootstrap4-datetimepicker.svg?branch=master)](https://travis-ci.org/pingcheng/bootstrap4-datetimepicker)The js and css files had been changed to the suit Bootstrap v4.
Since Bootstrap 4 removed the glyphicon, I replaced all icons with font-awesome v4, please includes the font-awesome css as well.
You can override font icon class like this -
```js
// Using font-awesome 5 icons
$.extend(true, $.fn.datetimepicker.defaults, {
icons: {
time: 'far fa-clock',
date: 'far fa-calendar',
up: 'fas fa-arrow-up',
down: 'fas fa-arrow-down',
previous: 'fas fa-chevron-left',
next: 'fas fa-chevron-right',
today: 'fas fa-calendar-check',
clear: 'far fa-trash-alt',
close: 'far fa-times-circle'
}
});
```
Click [here](http://eonasdan.github.io/bootstrap-datetimepicker/) for the official usage documentation.## Install
```
npm install pc-bootstrap4-datetimepicker
```## Changes
* JS DOM class name control
* CSS stylesheet
* Replaced glyphicon with font-awesome icons