Home  >  Article  >  Web Front-end  >  jQuery EasyUI API Chinese documentation - Calendar calendar usage_jquery

jQuery EasyUI API Chinese documentation - Calendar calendar usage_jquery

WBOY
WBOYOriginal
2016-05-16 18:00:501090browse

rewrites defaults with $.fn.calendar.defaults .


Usage

Copy code The code is as follows:



Copy code The code is as follows:

$('#cc').calendar({
width: 600,
height:600,
current:new Date()
});

特性

名称

类型

说明

默认值

width

number

日历组件的宽度。

180

height

number

日历组件的高度。

180

fit

boolean

true 时设置日历的尺寸以适应它的父容器。

false

border

boolean

定义是否显示边框。

true

weeks

array

显示星期的日历。

['S','M','T','W','T','F','S']

months

array

显示月份的列表。

['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']

year

number

日历的年。

当前年份(4位)

month

number

日历的月。

当前月份(从1开始)

current

Date

日历的日期。

当前日期

事件

名称

参数

说明

onSelect

date

当用户选择一个日期时触发。

方法

名称

参数

说明

options

none

返回 options 对象。

resize

none

调整日历的尺寸。

moveTo

date

Move the calendar to a specified date.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn