Time
/scss/controls/time.scss
생성 옵션
<div class="new-time"></div>
<div class="new-time2"></div>
Gn.create('time', {
target: '.new-time',
onChange: function(time){
console.log(time)
},
value: '22:33:44'
})
Gn.create('time', {
target: '.new-time2',
timeFormat: 'hh:mm',
onChange: function(time){
console.log(time)
},
value: '6:2'
})
| name |
type |
default |
description |
| target |
string |
|
time 생성 타겟 |
| value |
string |
now |
초기 시간 값 |
| timeFormat |
string |
hh:mm:ss |
시간 형식 (hh:mm:ss, hh:mm) |
| hasControls |
boolean |
true |
시간 셋팅 버튼(00:00, 23:59) 출력여부 |
| onChange |
function(value) |
|
시간 변경 시 발생 이벤트 |
| disabled |
boolean |
false |
Disable 여부 |
| readonly |
boolean |
false |
읽기전용 여부 |
메소드
| name |
return |
description |
| setTime(time: string) |
void |
시간 값을 변경한다. |
| getTime() |
string |
설정된 시간 값을 반환한다. |
| disable() |
void |
Disabled 처리한다. |
| enable() |
void |
Enabled 처리한다. |