Blame view

web/admin/exts-src/week-picker/README.md 932 Bytes
2e86c939   xu   “首次提交”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# [week-picker](http://scripts.morshed-alam.com/week-picker/)

A multi month week picker calendar.

[Demo](http://scripts.morshed-alam.com/week-picker/)


# Example

With default options:

```html
<input data-weekpicker="weekpicker"/>
```

Specifying number of months via data tag:

```html
<input data-weekpicker="weekpicker" data-months="5"/>
```

Specifying start of week via data tag:

```html
<input data-weekpicker="weekpicker" data-week_start="1"/>
```

Specifying target field using icon:

```html
<input type="text" readonly="" id="week_range"/>
<span class="add-on" data-weekpicker="weekpicker" data-target="#week_range">
    <i class="icon-th"></i>
</span>
```

## Data Options
 * Default week start: 0 [0 - Sunday to 6 - Saturday]
 * Default Number of Weeks: 6
 * Target field: self [Can parameterize using data-target="#field_id"]

## TO DO
 * Date format support
 * Theme support
 * Language support
 * Inline calendar