[]
InputDate 컨트롤을 사용하면 사용자가 날짜를 입력하고 편집할 수 있습니다. 날짜는 Globalize 클래스에서 지원하는 모든 형식으로 입력할 수 있습니다. 일반 입력 요소에 비해 다음과 같은 장점이 있습니다:
아래 예시에서, InputDate는 이번 주 날짜만 허용합니다:
<label for="theInputDate">The Date</label>
<div id="theInputDate"></div>
import * as wijmo from '@grapecity/wijmo';
import * as input from '@grapecity/wijmo.input';
function init() {
// a regular input date
let theDate = new input.InputDate('#theInputDate', {
format: 'MMM dd, yyyy',
min: firstDay,
max: lastDay,
});
}