pingcheng / bootstrap4-datetimepicker

datetimepicker for bootstrap 4

Home Page:http://eonasdan.github.io/bootstrap-datetimepicker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datetimepicker for Bootstrap 4

Build Status

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 -

// 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 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

About

datetimepicker for bootstrap 4

http://eonasdan.github.io/bootstrap-datetimepicker/

License:MIT License


Languages

Language:JavaScript 71.6%Language:CSS 23.8%Language:HTML 4.3%Language:PowerShell 0.2%