Methods
cut(childChain) → {EzComboChain}
- Description:
현재 EzComboChain에서 특정 comboChain을 잘라낸다.
Example
comboChain.cut(childChain);
Parameters:
| Name | Type | Description |
|---|---|---|
childChain |
EzComboChain | 잘라낼 ezComboChain |
Returns:
잘라낸 ezComboChain
- Type
- EzComboChain
getColNm() → {String}
- Description:
현재 EzComboChain의 colNm을 가져온다.
Example
comboChain.getColNm();
Returns:
콤보가 설정된 colNm, Grid일 경우에만 정상적인 값이 return된다.
- Type
- String
getComboIndex(value) → {number}
- Description:
콤보에 바인딩 된 dataset에서 특정 값을 가진 rowIndex를 가져온다.
Example
comboChain.getComboIndex("001");
Parameters:
| Name | Type | Description |
|---|---|---|
value |
any | index를 찾을 값 |
Returns:
특정 값을 가진 row, 값을 찾지 못하였을 경우 -1
- Type
- number
getComp() → {nexacro.Combo|nexacro.Grid|nexacro.Radio}
- Description:
현재 EzComboChain의 component를 가져온다.
Example
var comp = comboChain.getComp();
Returns:
콤보가 설정된 Component
- Type
- nexacro.Combo | nexacro.Grid | nexacro.Radio
getCurrentComboIdx() → {number}
- Description:
콤보에 바인딩 된 dataset에서 현재 콤보의 값을 가진 rowIndex를 가져온다.
Example
comboChain.getCurrentComboIdx();
Returns:
현재 값의 rowIndex
- Type
- number
getPreComboChain() → {EzComboChain}
- Description:
현재 EzComboChain의 부모를 가져온다.
Example
comboChain.getPreComboChain();
Returns:
현재 EzComboChain의 부모
- Type
- EzComboChain
getRootChain() → {EzComboChain}
- Description:
현재 EzComboChain의 가장 첫 Chain을 가져온다.
Example
var root = comboChain.getRootChain();
Returns:
Chain의 시작에 해당하는 ezComboChain
- Type
- EzComboChain
hasNext() → {boolean}
- Description:
현재 EzComboChain에 자식이 있는지 확인한다.
Example
comboChain.hasNext();
Returns:
자식 존재 여부
- Type
- boolean
refresh()
- Description:
현재 EzComboChain의 값을 기준으로 하위 콤보들의 value를 다시 계산한다.
Example
comboChain.refresh();
refreshRoot()
- Description:
root에 해당하는 EzComboChain 부터 연결된 모든 콤보들의 value를 다시 계산한다.
Example
comboChain.refreshRoot();
setNext(comboChainInfo)
- Description:
현재 EzComboChain의 값이 변경시 반응할 EzComboChain을 설정한다.
Example
this.combo.setNext({
comp : Combo00
filter : "pre.CD=='HI_CD'";
});
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
comboChainInfo |
Object | 콤보체인 정보 객체 Properties
|
updateCurrInfo()
- Description:
dataset, 바인딩 정보 갱신
Example
comboChain.updateCurrInfo();