/day-selector-range

https://datdot-ui.github.io/day-selector-range/

Primary LanguageJavaScriptMIT LicenseMIT

datdot-ui-calendar-days

DatDot vanilla js UI component

Opts

{name = 'calendar-days', month, days, year, status, value, start_cal, theme = ``}

Help

calendar_days.help() returns opts & the defaults for calendar-days component

Incoming message types

  • click returns onclick(contacts.by_name[name].pos)
  • clear returns clear_self()
  • selecting-second returns colorRange(0, current_state.opts.value)
  • first-selected-by-startcal returns setStatus('first-selected-by-startcal`
  • first-selected-by-endcal returns setStatus('first-selected-by-endcal`
  • second-selected returns setStatus('second-selected-by-other`
  • color-from-start returns colorRange(0, current_state.opts.value)
  • color-to-end returns colorRange(current_state.opts.value, days + 1)
  • update returns update_cal(data)

Outgoing message types

parent

  • clear
  • value-first
  • value-second
  • status
  • selecting-second