clickTab (event)
탭아이템 클릭 이벤트입니다.
탭아이템들을 클릭할 때 발생합니다.
Info
Name |
Type |
Required |
Description |
event |
object |
선택 |
이벤트 인자 객체 |
event.type |
string |
선택 |
이벤트 타입 |
event.item |
object |
선택 |
클릭할 탭아이템 객체 |
event.index |
number |
선택 |
클릭할 탭아이템의 인덱스 |
Example
myTab.setEvents({
clickTab: function (event) {
console.log("clickTab");
return true;
},
});
myTab.setEventListener("clickTab", function (event) {
console.log("clickTab");
return true;
});
myTab.setOptions({
events: {
clickTab: function (event) {
console.log("clickTab");
return true;
},
},
});
Since