如何让AUI-datepicker在元素焦点上弹出。目前它只在点击元素时弹出。AUI日期选择器:在元素焦点上弹出日期选择器
这里是代码
脚本:
YUI().use('aui-datepicker',
function(Y) {
new Y.DatePicker(
{
trigger: '.date-selector',
popover: {
zIndex: 1
},
}
);
}
);
和标签
<aui:input id="startDate" name="startDate" cssClass="date-selector" label="startDate">
还有一件事我怎么能范围的日期?
http://stackoverflow.com/questions/3886239/how-to-start-jquery-datepicker-with-focus – 2014-12-03 06:33:41
@ParkashKumar我知道如何在jQuery中实现。但我需要在aui bcoz中使用aui标签和脚本在我的portlet中。所以最好和aui-datepicker一起去。 – Devz 2014-12-03 07:32:13
http://blogs.xtivia.com/home/-/blogs/liferay-alloy-ui-calendar-datepicker-and-datepickerselect可能是有用的 – ASR 2014-12-03 10:07:38