아이템 클릭시 호출됨
| Parameters | Type | Description |
|---|---|---|
| objInst | INSTANCE | 컴포넌트 인스턴스 |
| index | short | 클릭한 아이템 인덱스 |
| depth | short | 클릭한 아이템 깊이(메뉴이외영역은 -1) |
| type | short | 클릭한 아이템 영역(*Remark 참조) |
| Type | Description |
|---|---|
| void | 없음 |
* type 0 : 아이템 영역 클릭 1 : 아이템의 상태이미지영역 클릭
function treeview01_on_itemclick(objInst, index, depth, type)
{
var msg = "";
if (type == 1) {
msg = "Status Image Click";
} else {
msg = "Item Click";
}
var msg1 = objInst.getname() + "_on_itemclick : " + index + " , " + depth + " , " + msg;
factory.consoleprint(msg1);
}