1.18.0 • Published 2 months ago

@forter/date-range-picker v1.18.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
2 months ago

fc-date-range-picker

An element by Forter

Usage

<script>
   import '@forter/date-range-picker';
</script>

<fc-date-range-picker>
</fc-date-range-picker>

Examples

<!-- Preset with no dates -->
<fc-date-range-picker preset="LAST_365_DAYS" .dates="${[]}">
</fc-date-range-picker>

<!-- Timestamp Int Dates no preset -->
<fc-date-range-picker preset="" .dates="${[1588305600000,1589169599999]}">
</fc-date-range-picker>

* <!-- Timestamp String Dates no preset -->
<fc-date-range-picker preset="" .dates="${['1588305600000','1589169599999']}">
</fc-date-range-picker>

* <!-- Max Range of 10 days -->
<fc-date-range-picker preset="" maxDays=10 .dates="${['1588305600000','1589169599999']}">
</fc-date-range-picker>

* <!-- Max Date -->
<fc-date-range-picker preset="" maxDate="2024-04-20" .dates="${['1588305600000','1589169599999']}">
</fc-date-range-picker>

  * * <!-- Subset of presets and no calendar -->
<fc-date-range-picker .presets="${['THIS_MONTH', 'LAST_MONTH']}" hidecalendar>
</fc-date-range-picker>

Properties

PropertyAttributeTypeDefaultDescription
datesdatesany[]Dates picked. example: []
disableDatePickerRangeLimitnumber
disableddisabledbooleanfalseDisabled boolean. default: false, example: true
formatformatstring"DD MMM YYYY HH:mm"Date Format. default: DD-MM-YYYY HH:mm, example: DD/MM/YYYY HH:mm
hideCalendarhidecalendarbooleanfalseHide calendar and only show presets.
maxDatemaxDatestringLimit maximum date can be picked
maxDaysmaxDaysstringLimit maximum date range in dyas (i.e. 10 will allow only range of 10 days), default none. example: 10
minDateminDatestringLimit minimum date can be picked
pickerOptionspickerOptions{}{}Options for litepicker to override the defaults
presetpresetstringTime Range Preset. example: LAST_90_DAYS
presetspresetsany[]Available presets for user to pick (if only a subset is required). If all presets are required, leave empty.example: ["THIS_MONTH", "LAST_MONTH"]
rightrightbooleanIf date-picker is aligning to right hand side. example: true
utcutcnumber0
utctypeutctypestring""

Events

Event
change

CSS Custom Properties

PropertyDescription
--fc-date-picker-colorinput text color. example: pink
--fc-date-picker-heightdate picker width. example: 100px
--fc-date-picker-widthdate picker width. example: 1000px
1.18.0

2 months ago

1.17.0

3 months ago

1.16.0

3 months ago

1.15.5

3 months ago

1.15.4

3 months ago

1.15.3

3 months ago

1.15.2

1 year ago

1.15.1

1 year ago

1.15.0

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.13.0

3 years ago

1.12.0

3 years ago

1.11.3

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.2

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.3

4 years ago

1.9.0

4 years ago

1.9.2

4 years ago

1.8.0

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago