CALENDAR

INTRO

The CALENDAR module provides a refreshing zero-dependency JavaScript datepicker Pikaday.

ERLANG

-record(calendar, { ?nx_BASE(nx_calendar2), autocomplete=true, autofocus=false, disabled=false, form=[], list=[], maxDate={2021,2,2}, minDate, format="DD.MM.YYYY", pattern=[], name=[], step=[], readonly=[], required=[], value={2020,2,2}, placeholder=[], onSelect=[], disableDayFn=[], position=[], reposition=[], yearRange=100}).

HTML5

> :erlang.iolist_to_binary(:nitro.render(NITRO.calendar(id: :cal))) "<input type=\"calendar\"/>" > :erlang.iolist_to_binary(:nitro.render(:nitro.actions)) "pickers['cal'] = new Pikaday({ field: document.getElementById(''), firstDay: 0, i18n: clLangs.ua, defaultDate: new Date(2021, 10, 7), setDefaultDate: false, minDate: null, maxDate: new Date(2020,10,10), format: 'DD.MM.YYYY', onSelect: null, disableDayFn: null, position: 'bottom left', reposition: true, yearRange: 100});

UI

This module may refer to: nitro.