博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jQuery.ptTimeSelect 时间控件
阅读量:6971 次
发布时间:2019-06-27

本文共 1749 字,大约阅读时间需要 5 分钟。

jQuery.ptTimeSelect

Documentation

Installation

There are two files (.css and .js) delivered with this plugin and that must be incluced in your html page after the jquery.js library, and prior to making any attempts at using it.  Both of these are to be included inside of the ‘head’ element of the document.

Usage

$(ele).ptTimeSelect()

Attaches a ptTimeSelect widget to each matched element.  Matched elements must be input fields that accept a values (input field).  Each element, when focused upon, will display a time selection popoup where the user can define a time.

PARAMS

@param {OBJECT} opt (Optional) An object with the options for the time selection widget.

OPTIONS

containerClass String.  A class to be assocated with the popup widget.  (default: none)
containerWidth String.  Css width for the container.  (default: none)
hoursLabel String.  Label for the Hours.  (default: Hours)
minutesLabel String.  Label for the Mintues.  (default: Minutes)
setButtonLabel String.  Label for the Set button.  (default: SET)
popupImage String.  The html element (ex. img or text) to be appended next to each input field and that will display the time select widget upon click.
zIndex Int.  Interger for the popup widget z-index.
onBeforeShow Function.  Function to be called before the widget is made visible to the user.  Function is passed 2 arguments: 1) the input field as a jquery object and 2) the popup widget as a jquery object.
onClose Function.  Function to be called after closing the popup widget.  Function is passed 1 argument: the input field as a jquery object.
onFocusDisplay Boolean.  True or False indicating if popup is auto displayed upon focus of the input field.  (default:true)

RETURNS

  • @return {object} jQuery

EXAMPLE

$('#fooTime').ptTimeSelect();

 

转载地址:http://ftasl.baihongyu.com/

你可能感兴趣的文章
eclipse 快捷键设置
查看>>
c++11 多线程间共享数据 <c++ concurrency in action>
查看>>
py 的 第 24 天
查看>>
BZOJ 3456 城市规划
查看>>
多轨视频编辑技术支持
查看>>
who
查看>>
sql where 1=1
查看>>
HDU2425:Hiking Trip(BFS+优先队列)
查看>>
[Oracle]ORA-01461: can bind a LONG value only for insert into a LONG column
查看>>
xcode6新建工程
查看>>
单向路由算法
查看>>
RabbitMQ系列教程之二:工作队列(Work Queues)
查看>>
scrapy入门教程
查看>>
Linux学习之CentOS(三十三)--DNS基础及域名系统架构
查看>>
leetcode349
查看>>
批处理-自动同步数据库
查看>>
git常用命令[持续更新]
查看>>
HTML标签 — dl,dt,dd
查看>>
python-----基础大杂烩
查看>>
多个Tomcat同时运行环境配置 - imsoft.cnblogs
查看>>