This class is here for a simple stand alone function (no additional classes required) that will present a simple calendar popup and allow the user to select a date from it.
DEMO
The following example shows clicking on the button triggering the calendar using the following code:
js
html
The key to the calendar is to trigger it using the js from the html:
html
js
If you do not supply the callbackFunction
then the result in yyyy-mm-dd format will be placed inside the destElem
field, otherwise this will be passed to the callbackFunction
to handle manually:
js
Implementation is simple:
html
js
(e.target
is the triggering button - or the date input field - and allows the popup to know where to position itself)
To close the popup using javascript, either use _popup.removePopup()
, or remove the .mf-calendar-popup
element directly.
Include the scripts as seen in Example 1
html
html
js
Also see
articles/Implementing-a-Monaco-Editorsquarearticles/iConnectionTestsquarearticles/javascript-camerasquarearticles/list-editsquarearticles/minifierssquarearticles/opayosquarearticles/table-drag-sortersquarearticles/typewatchsquareprojects/MFCalendarPopupsquareprojects/MFChartColumnsquareprojects/MFColorPickersquareprojects/MFColorPickerBasicsquareprojects/MFColumnDataBarsquareprojects/MFColumnGradientsquareprojects/MFCropCornerUIsquareprojects/MFFloatawayMsgsquareprojects/MFPanelssquareprojects/MFSelectorsquareprojects/MFShowConsolesquare