Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Allowing users to easily add dates to your input fields with jQuery UI Datepicker


In this recipe, we will use jQuery UI and its excellent Datepicker. This is a mature and stable library, but there is one caveat to have in mind, that is, there are no styles compatible with Bootstrap 4.

Thus, the task for this recipe is to make the jQuery UI's Datepicker widget work with Bootstrap 4. This task mostly has to do with CSS. The official jQuery UI documentation for the Datepicker widget is available at https://jqueryui.com/datepicker/.

How to do it…

  1. Reference the recipe specific SCSS file, recipe06-07.scss, on top of main.scss. After this addition, main.scss should now look as follows:
@import "recipe06-07.scss"; 

@import "./bower_components/bootstrap/scss/bootstrap.scss";
@import "./bower_components/bootstrap/scss/_mixins.scss";
@import "./bower_components/font-awesome/scss/font-awesome.scss";
@import "./bower_components/hover/scss/hover.scss";
  1. Next, open the SCSS file you imported in the preceding...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic