Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bootstrap-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-datepicker

A datepicker for Bootstrap forked from Stefan Petre's (of eyecon.ro), improvements by eternicode

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is bootstrap-datepicker?

The bootstrap-datepicker npm package is a flexible and customizable datepicker plugin for Bootstrap. It allows users to easily add date selection functionality to their web applications with a variety of options and configurations.

What are bootstrap-datepicker's main functionalities?

Basic Datepicker

This feature allows you to add a basic datepicker to an input field. The datepicker will pop up when the input field is focused, allowing users to select a date.

<input type="text" class="datepicker">
<script>
  $('.datepicker').datepicker();
</script>

Date Range Picker

This feature allows you to add two datepickers to input fields to select a start and end date, useful for date range selection.

<input type="text" class="start-date">
<input type="text" class="end-date">
<script>
  $('.start-date').datepicker();
  $('.end-date').datepicker();
</script>

Custom Date Format

This feature allows you to customize the date format displayed in the datepicker. In this example, the date format is set to 'mm/dd/yyyy'.

<input type="text" class="datepicker">
<script>
  $('.datepicker').datepicker({
    format: 'mm/dd/yyyy'
  });
</script>

Disable Specific Dates

This feature allows you to disable specific dates in the datepicker. In this example, weekends (Saturdays and Sundays) are disabled.

<input type="text" class="datepicker">
<script>
  $('.datepicker').datepicker({
    beforeShowDay: function(date) {
      var day = date.getDay();
      return [(day != 0 && day != 6)];
    }
  });
</script>

Inline Datepicker

This feature allows you to create an inline datepicker that is always visible, rather than appearing in a popup.

<div class="datepicker"></div>
<script>
  $('.datepicker').datepicker({
    inline: true
  });
</script>

Other packages similar to bootstrap-datepicker

Keywords

FAQs

Package last updated on 28 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc