Socket
Socket
Sign inDemoInstall

@forter/calendar

Package Overview
Dependencies
1
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @forter/calendar

calendar from Forter Components


Version published
Weekly downloads
25
increased by733.33%
Maintainers
3
Install size
242 kB
Created
Weekly downloads
 

Readme

Source

fc-calendar

An element by Forter

Usage

<script>
   import '@forter/calendar';
</script>

<fc-calendar>
</fc-calendar>
## Examples

```html

<!-- Sample: max year and date -->

<fc-calendar pickerOptions='{"dropdowns": {"maxYear": 2024, "minYear": 2015, "months": true, "years": true}, "maxDate": "2024-04-04"}'>
</fc-calendar>

Properties

PropertyAttributeTypeDefaultDescription
calendarsnever[]
datesdatesany[]List of selected dates. example: []
disableDatePickerRangeLimitnumber
formatformatstring"YYYY-MM-DD"Date Fromat. example: DD-MM-YYYY
fullYearHtml"" | TemplateResult
optionsany
pickerOptionspickerOptions{}{}Options for litepicker to override the defaults
singlesinglebooleanToggle single date or date-range. example: true

Events

EventDescription
changewhen dates picked. example: [] method: fireDatePickedEvent

CSS Custom Properties

PropertyDescription
--fc-calendar-bg-colorbackground color. example: pink
--fc-calendar-day-colorday color. example: pink
--fc-calendar-day-color-hoverday hover color. example: pink
--fc-calendar-day-is-end-bgend day range background color. example: pink
--fc-calendar-day-is-end-colorend day range text color. example: pink
--fc-calendar-day-is-in-rangeselected range background color. example: pink
--fc-calendar-day-is-start-bgstart day range background color. example: pink
--fc-calendar-day-is-start-colorstart day range text color. example: pink
--fc-calendar-day-is-today-colortoday day color. example: pink
--fc-calendar-day-widthcalendar day width. example: 10px
--fc-calendar-month-buttonnext/previous month color. example: pink
--fc-calendar-month-button-hovernext/previous month arrow hover color. example: pink
--fc-calendar-month-weekday-colorweekday color. example: pink

Keywords

FAQs

Last updated on 13 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc