Web Component: j-Period
j-Period
The component for picking a time period.
- singleton
Methods:
Method: component.show(options)
options.element
{Element/jQuery Element} - all allignment calculations will be relative to this elementoptions.align
Align the component relatively to the element inoptions.element
property. Available properties: 'center', 'left' and 'right'. The default value - 'right'options.callback
Function, which will be executed by clicking on 'Apply' button of the component - receives two parameters: start and end date objectsoptions.start
,options.end
{Date} - In order to predifine selected period, both of these properties should be specified.
Configuration:
firstday
- {String} - Allows to set the first day of the week to Monday. The defaul value is 'monday' - Days of the week start from Monday. 'sunday' - days of the week start from Sunday.dateformat
- {String} - Specifies the date format. The default value -DEF.dateformat
apply
- {String} - Label for "Apply" buttoncancel
- {String} - Label for "Cancel" buttoncustom
- {String} - Label for "Custom" filter buttonmonth
- {String} - Label for "Current month" filter buttonthisY
- {String} - Label for "This year" filter buttonlastY
- {String} - Label for "Last year" filter button
Created
30. november 2022
Updated
01. february 2023
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Kirill Zlobin
Email
jsdevzk@gmail.com