[]
InputNumber 컨트롤을 통해 사용자가 숫자를 입력하고 편집할 수 있습니다. 일반 입력 요소에 비해 다음과 같은 장점이 있습니다:
이러한 속성에 대한 예시를 제공하는 데모를 참고하실 수 있습니다.
기본적으로, InputNumber 값이 필요하므로 컨트롤의 전체 콘텐츠를 삭제할 수 없습니다. 컨트롤에서 모든 내용을 삭제하고 비워 두려면 isRequired 속성을 __false__로 설정하시길 바랍니다.
<input id="theNumber">
import * as input from '@grapecity/wijmo.input';
function init() {
// a regular input number
let theNumber = new input.InputNumber('#theNumber', {
min: 0,
max: 100,
step: 10,
placeholder: 'Your age (optional)'
});
}