可定制的JS期與時間選擇器:Rome

jopen 10年前發布 | 29K 次閱讀 Rome JavaScript開發工具包

Rome是一個可定制的JS日期與時間選擇器。不依賴于第三方庫。

創建 Rome 日歷有一堆的選項可以用。這些選項具有合理的默認值,很容易調整。這些選項在下面列出。

</tr> </thead>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr>

</tr> </tbody> </table>

在線演示:https://bevacqua.github.io/rome

 可定制的JS日與時間選擇器:Rome

項目主頁:http://www.baiduhome.net/lib/view/home/1406190663054

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
Option Description
appendTo DOM element where the calendar will be appended to. Takes 'parent' as the parent element
autoClose Closes the calendar when picking a day or a time
autoHideOnBlur Hides the calendar when focusing something other than the input field
autoHideOnClick Hides the calendar when clicking away
date The calendar shows days and allows you to navigate between months
dateValidator Function to validate that a given date is considered valid. Receives a native Date parameter.
dayFormat Format string used to display days on the calendar
initialValue Value used to initialize calendar. Takes string, Date, or moment
inputFormat Format string used for the input field as well as the results of rome
invalidate Ensures the date is valid when the field is blurred
max Disallow dates past max. Takes string, Date, or moment
min Disallow dates before min. Takes string, Date, or moment
monthFormat Format string used by the calendar to display months and their year
required Is the field required or do you allow empty values?
styles CSS classes applied to elements on the calendar
time The calendar shows the current time and allows you to change it using a dropdown
timeFormat Format string used to display the time on the calendar
timeInterval Seconds between each option in the time dropdown
timeValidator Function to validate that a given time is considered valid. Receives a native Date parameter.
weekStart Day considered the first of the week. Range: Sunday 0 - Saturday 6
  • sesese色