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

callie

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callie

Lightweight modular datepicker

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

📅 Callie

⚠ This package currently only contains the logic for a date picker and does not claim to be a fully functional UI component at this time!

Callie is a lightweight modular datepicker splitted into three main components:

  • Date logik (model)
  • Transformation and mapping to prepare for view
  • Render logik (view) Each of these components can be replaced by other solutions independently.

callie

JS options

NameDescriptionDefault
weeksPerMonth(number) Amount of weeks per month6
daysPerWeek(number) Amount of days per week7
useWeeks(boolean) Render row with day name shorts in the month viewtrue
containerSelector(string) Selector for the main container'[data-role=container]'
daysTargetSelector(string) Selector of node to insert days list in'[data-role=days]'
monthsTargetSelector(string) Selector of node to insert month list in'[data-role=months]'
yearsTargetSelector(string) Selector of node to insert years list in'[data-role=years]'
selectedStateClassName(string) ClassName to be used on selected date elements'selected'
currentStateClassName(string) ClassName to be used on current date elements'current'
disabledStateClassName(string) ClassName to be used on disabled date elements'disabled'
format(string) Date format template for parsing and formating fallback'dd.mm.yyyy'
noTouch(boolean) Set if picker should be used even on touch devicesfalse
isOpen(boolean) Picker initially openedfalse
dateNamesFallback(object) Fallback for date names for browsers not supporting Internatinalization APIEnglish names

CSS modifer

ModifierDescription
--slideAdds slide transition between views
--fadeAdds fade transition between views

Browser support

  • Chrome
  • Safari 9+
    • For Safari 9 see dateNamesFallback and format in JS options
  • Firefox
  • Internet Explorer 11+

Roadmap

  • Providing a fully functional UI component
  • Implementing an API to set and get properties of datepicker instance

FAQs

Package last updated on 29 Mar 2017

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