# fdatepicker.js

> 移动端满屏日历插件，支持单个月份切换和多个月份平铺展示两种方式。使用多月份平铺展示时，支持初始化加载个数、分页加载。

Latest version **1.0.4** (published 2015-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install fdatepicker.js
pnpm add fdatepicker.js
yarn add fdatepicker.js
bun add fdatepicker.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2015-07-20 |
| First published | 2015-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Frend |
| Maintainers | frend |
| Keywords | datepicker, date, calendar, frend |

## Links

- npm: https://www.npmjs.com/package/fdatepicker.js
- Repository: https://github.com/FrendEr/fDatepicker.js
- Issues: https://github.com/FrendEr/fDatepicker.js/issues
- npm.io page: https://npm.io/package/fdatepicker.js

## Dependencies (4)

- [grunt](https://npm.io/package/grunt.md) ^0.4.5
- [grunt-contrib-copy](https://npm.io/package/grunt-contrib-copy.md) ^0.8.0
- [grunt-contrib-jshint](https://npm.io/package/grunt-contrib-jshint.md) ^0.11.2
- [grunt-contrib-uglify](https://npm.io/package/grunt-contrib-uglify.md) ^0.9.1

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2015-07-20
- 1.0.333 — 2015-07-20
- 1.0.0 — 2015-07-07

## README

# fDatepicker.js

移动端满屏日历插件，支持单个月份切换和多个月份平铺展示两种方式。使用多月份平铺展示时，支持初始化加载个数、分页加载。

## Initialize

```javascript

// single frame
var datepicker = new Datepicker({
    container: '#container',
    initDate: new Date('2015/7/20'),
    startDate: new Date('2015/7/3'),
    endDate: new Date('2016/7/3'),
    singleFrame: true,
    i18n: false,
    selectCallback: function(date) {
        $('#dateTips').html(date);
    }
});


// multiple frames
var datepicker = new Datepicker({
    container: '#container',
    initDate: new Date('2015/7/21'),
    startDate: new Date('2015/7/3'),
    endDate: new Date('2016/7/3'),
    initFrame: 4,
    loadFrames: 3,
    loadOffset: 60,
    i18n: true,
    selectCallback: function(date) {
        $('#dateTips').html(date);
    }
});

```

## Demo

link：[http://frender.github.io/fDatepicker.js](http://frender.github.io/fDatepicker.js)

## Options

- **container** `@String`
> 需要制定的展示日历的根元素

- **initDate** `@String or @Date`
> 初始化的选中日期。如果使用`@String`类型，请遵循标准的YYYYMMDD模式，否则实现标准Date.parse的浏览器会报invalid date错误。下同。

- **startDate** `@String or @Date`
> 日历的开始日期

- **endDate** `@String or @Date`
> 日历的结束日期

- **singleFrame** `@Boolean`
> 使用单个月份模式，支持月份切换

- **initFrames** `@Number`
> 【多月份模式】初始化的个数

- **loadFrames** `@Number`
> 【多月份模式】分页加载每页的个数

- **loadOffset** `@Number`
> 【多月份模式】动态加载的偏移量

- **i18n** `@Boolean`
> 开启国际化支持英文模式，默认使用中文模式

- **selectCallback** `@Function`
> 选择日期后的回调函数

## Installation

```javascript

bower install fDatepicker.js [--save[-dev]]

```
or

```javascript

npm install fdatepicker.js [--save[-dev]]

```

## Version

- **1.0.1**

> + 增加单月份切换支持
> + bug 修复


- **1.0.0**

---
_Source: https://npm.io/package/fdatepicker.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
