트리 » Api

itemhaschildrenex

Description

지정한 키값의 아이템이 하부 트리를 가지고 있는지 확인하는 API이다.

Parameters

Parameters Type Description
strKey STRING 트리 아이템 키값

Return Value

Type Description
BOOL 하부 트리 존재 여부(true, false)

Example

function btn_itemhaschildrenex_on_mouseup() { // 키값을 가지는 아이템 추가 trTest.insertitemex("addtree", "treekey", 0, 1, "", ""); // "treekey" 키값의 아이템을 부모로 하는 아이템 추가 trTest.insertitemex("subnode1", "subnode1key", 1, 1, "treekey", ""); var subnodeHas = trTest.itemhaschildrenex("treekey"); if(subnodeHas == true){ screen.alert("하부 트리가 있습니다."); } }

See Also

itemhaschildren

Viewer Ver.

9.1.1.1

Update Date

20110412