ForgeComponents
en

Components

j-InlineDatePicker

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

Configuration:

  • required {Boolean} required (default: false)
  • firstday {Number} first day in the week (default: DEF.firstdayofweek)
  • today {String} a label for Set today button
  • days {String} days e.g. SU,MO,TU,WE,TH,FR,SA (default).
  • months {String} months e.g. January,February,... (default).
  • badges {String} a link to the function(date, append)
    • append([date1, date2, date3]) (must be array of dates)

Use it with <ui-component name="inlinedatepicker">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<ui-component name="inlinedatepicker" path="form.date" config="today:Set today;firstday:0"></ui-component>
<br />
<ui-component name="inlinedatepicker" path="form.date" config="today:Set today;firstday:0"></ui-component>

<script>
	var form = {};
	form.date = new Date();
</script>