ポータルサイトを作っていてLiferayを使用していますjQueryの情報は多いですがAlloyUIの情報が少なく困っています
今は翌日からの日付をカレンダーで選択できるようになっているのですが
土日を選択できないようにしたいのですが情報が少なくて困っています。
ご教授お願いします。
こちらが今のコードです
<%@page pageEncoding="UTF-8"%> <%@ include file="/init.jsp" %> <% String ActionURL = ""; %> <aui:fieldset collapsed="<%= true %>" collapsible="<%= true %>" label="カレンダー"> <input label="My Text Input" name="myTextInput" type="text" value='' id="datetext" disabled="true"/> <button class="btn btn-primary" id="startDate" onfocus="openDatePicker();"><i class="icon-calendar icon-white"></i></button> <script> var datePicker; var today = new Date(); var date = new Date(today.getFullYear(),today.getMonth(),today.getDate()+1); YUI({ lang: 'ja' }).use('aui-base','aui-datepicker', function(Y) { datePicker = new Y.DatePicker({ trigger: '#startDate', popover: { zIndex: 10, }, calendar: { minimumDate: date, }, on: { selectionChange: function(event) { document.getElementById("datetext").value = (event.newSelection); } } }); }); function openDatePicker() { datePicker.getPopover(); } </script> </aui:fieldset>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。