Home > Backend Development > PHP Tutorial > jQuery EasyUI API Chinese Documentation - DateBox date box

jQuery EasyUI API Chinese Documentation - DateBox date box

WBOY
Release: 2016-07-29 08:46:57
Original
1107 people have browsed it

扩展自 $.fn.combo.defaults。用$.fn.datebox.defaults重写了 defaults

 

 jQuery EasyUI API 中文文档 - DateBox日期框
依赖
combo
calendar
用法

复制代码 代码如下:




复制代码 代码如下:


$('#dd').datebox({
required:true
});


特性

其特性扩展自combo,下列是为datebox增加的特性。

名称

类型

说明

默认值

panelWidth

number

下拉日历面板的宽度。

180

panelHeight

number

下拉日历面板的高度。

auto

currentText

string

当前日期按钮上显示的文字。

Today

closeText

string

关闭按钮上显示的文字。

Close

okText

string

确定按钮上显示的文字。

Ok

disabled

boolean

true 时禁用该域。

false

formatter

function

格式化日期的函数,此函数有一个 'date' 参数,并返回一个字符串值。

 

parser

function

解析日期字符串的函数,此函数有一个'date' 字符串参数,并返回一个日期值。

 

Event

Name

Parameters

Description

onSelect

date

Fired when the user selects a date.

method

The method extends from combo, the following is for datebox Rewritten method.

Name

Parameters

Instructions

options

none

Returns the options object. Get it calendar

object.

setValue

value

set The value of datebox

.

The above introduces the jQuery EasyUI API Chinese document - DateBox date box, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template