셀렉트박스 » Api

getselectboxinfo

Description

셀렉트박스의 정보를 remark에 있는 class형태로 반환 하는 API이다.

Return Value

Type Description
class 셀렉트박스 정보

Remark

// 콤보박스 정보
classSelectboxInfo = function()
{
	this.strdelimiter = ":";
	this.strpicklist = "";
	this.nstyle = 0;
	// 콤보박스 아이템에 대한 정보(classSelectboxItem형태)를 담고 있는 Array
	this.arrselectitems = new Array();
}

// 콤보 박스 리스트의 아이템 하나에 대한 정보
classSelectboxItem = function()
{
	this.bhidden = false;
	this.strcode = "";
	this.strcomment = "";
}

Example

function btn_getselectboxinfo_on_mouseup(objInst) { var classSelectboxInfo = cb.getselectboxinfo(); factory.consoleprint("** delimiter : " + classSelectboxInfo.strdelimiter); factory.consoleprint("** picklist : " + classSelectboxInfo.strpicklist); factory.consoleprint("** selectStyle : " + classSelectboxInfo.nstyle); factory.consoleprint("** selectbox list data **"); var strShow = ""; for(var nItem = 0;nItem < classSelectboxInfo.arrselectitems.length;nItem++) { var classSelectItem = classSelectboxInfo.arrselectitems[nItem]; if(classSelectItem == null) { continue; } // show/hide strShow = classSelectItem.bhidden ? "(hiddenitem)" : "(showitem)"; factory.consoleprint(classSelectItem.strcode + classSelectboxInfo.strdelimiter + classSelectItem.strcomment + strShow); } }

Viewer Ver.

9.1.1.1

Update Date

20160921