stephencelis/timeframe
소개
Click-draggable. Range-makeable. A better calendar.
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTimeframe
Click-draggable. Range-makeable. A better calendar.
The code:
new Timeframe(element, options);
Options available:
months: The number of calendar months showing at once (default:2).format: The strftime format for the dates in the input fields (default:%b %d, %Y). (With Datejs, it takes Datejs formatting.)weekOffset: Override the localization's default weekday start with this option (e.g.,1will force the rows to start on Monday; use0for Sunday).startField,endField: Declare the range start and end input tags (by default, these are generated with the Timeframe). When thevalueattribute is pre-populated, the Timeframe will load with this range.previousButton,todayButton,nextButton,resetButton: Declare the navigational buttons (these are also generated by default with the Timeframe).earliest,latest: The earliest and latest selectable dates (accepts either aDateobject or aStringthat can be parsed withDate.parse()).maxRange: Limit the maximum possible range length (set to1to turn Timeframe into a regular old date picker).
Localization:
Drop in a localized version of Datejs, and it should just work. An added bonus is that the text fields will live-parse more nicely! Just try "next tues."
Notes:
- I'm just sick of multiple date pickers on the same page.
An example:
<script type="text/javascript" charset="utf-8">
//<![CDATA[
new Timeframe('calendars', {
startField: 'start',
endField: 'end',
earliest: new Date(),
resetButton: 'reset' });
//]]>
</script>
See it in action here.
Dependencies:
Timeframe requires Prototype 1.6 or higher.
Contributors:
- Justin Palmer ("Caged")
- Nik Wakelin ("codetocustomer")
- Sebastien Grosjean ("ZenCocoon")
- Will Bryant ("willbryant")
Download:
Find the latest version of Timeframe on Github.
More information can be found here.
Copyright (c) 2008-2011 Stephen Celis, released under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…