Một mục tập trung giao diện trong kho dữ liệu GitHub của TopGit: fengyuanchen/datepicker, 1.1k sao, nhóm Frontend, JavaScript. ⚠️ [Deprecated] No longer maintained. A simple jQuery datepicker plugin.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
You may set datepicker options with $().datepicker(options).
If you want to change the global default options, You may use $.fn.datepicker.setDefaults(options).
autoShow
Type: Boolean
Default: false
Show the datepicker automatically when initialized.
autoHide
Type: Boolean
Default: false
Hide the datepicker automatically when picked.
autoPick
Type: Boolean
Default: false
Pick the initial date automatically when initialized.
inline
Type: Boolean
Default: false
Enable inline mode.
If the element is not an input element, will append the datepicker to the element.
If the container option is set, will append the datepicker to the container.
container
Type: Element or String(selector)
Default: null
A element for putting the datepicker. If not set, the datepicker will be appended to document.body by default.
Only works when the inline option set to true.
trigger
Type: Element or String(selector)
Default: null
A element for triggering the datepicker.
language
Type: String
Default: ''
The ISO language code. If not set, will use the built-in language (en-US) by default.
You should define the language first. View the I18n section for more information or check out the i18n folder for available languages.
$().datepicker({
language: 'en-GB'
});
format
Type: String
Default: 'mm/dd/yyyy'
Available date placeholders:
Year: yyyy, yy
Month: mm, m
Day: dd, d
The date string format.
$().datepicker({
format: 'yyyy-mm-dd'
});
date
Type: Date or String
Default: null
The initial date. If not set, will use the current date by default.
$().datepicker({
date: new Date(2014, 1, 14) // Or '02/14/2014'
});
startDate
Type: Date or String
Default: null
The start view date. All the dates before this date will be disabled.
endDate
Type: Date or String
Default: null
The end view date. All the dates after this date will be disabled.
Note: All the data-view attributes must be set when you customize it.
offset
Type: Number
Default: 10
The offset top or bottom of the datepicker from the element.
zIndex
Type: Number
Default: 1
The CSS z-index style for the datepicker.
filter
Type: Function
Default: null
Syntax: filter(date, view)
date: the date for checking.
view: the the current view, one of day, month or year.
Filter each date item. If return a false value, the related date will be disabled.
var now = Date.now();
$().datepicker({
filter: function(date, view) {
if (date.getDay() === 0 && view === 'day') {
return false; // Disable all Sundays, but still leave months/years, whose first day is a Sunday, enabled.
}
}
});
fengyuanchen/datepicker có 1.1k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/fengyuanchen/datepicker. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
fengyuanchen/datepicker có những chủ đề gì?
GitHub topics của fengyuanchen/datepicker: "datepicker", "javascript", "jquery-datepicker-plugin", "jquery-plugin". TopGit xếp repo vào nhóm Frontend.
fengyuanchen/datepicker còn đang phát triển không?
Commit gần nhất trên fengyuanchen/datepicker là 4.7 năm trước (theo timestamp GitHub). Repo có 520 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
fengyuanchen/datepicker là gì?
fengyuanchen/datepicker (fengyuanchen/datepicker) là dự án JavaScript trên GitHub. Theo mô tả gốc: ⚠️ [Deprecated] No longer maintained. A simple jQuery datepicker plugin.
fengyuanchen/datepicker so với các dự án Frontend khác thế nào?
fengyuanchen/datepicker được TopGit xếp vào nhóm Frontend, với 1.1k sao GitHub và viết bằng JavaScript. Xem trang chủ đề Frontend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
fengyuanchen/datepicker viết bằng ngôn ngữ gì?
fengyuanchen/datepicker chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao fengyuanchen/datepicker được xếp vào nhóm Frontend?
TopGit xếp fengyuanchen/datepicker vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "datepicker", "javascript", "jquery-datepicker-plugin"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về datepicker?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về datepicker.