0.2.3 • Published 7 years ago

callie v0.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

📅 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
0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago