Constructor
new EzTitlebar()
Members
action :string
- Description:
transaction 요청시 사용할 datasource 설정
transaction 요청시 사용할 datasource 설정
Type:
- string
addButtonText :string
- Description:
신규버튼 텍스트
신규버튼 텍스트
Type:
- string
buttonEnter :boolean
- Description:
버튼에서 Enter 또는 Space키가 눌러졌을 때 버튼을 클릭할지 여부
버튼에서 Enter 또는 Space키가 눌러졌을 때 버튼을 클릭할지 여부
Type:
- boolean
buttonHeight :number
- Description:
버튼 높이
버튼 높이
Type:
- number
buttonMargin :number
- Description:
버튼 좌우 여백(px) 설정
버튼 좌우 여백(px) 설정
Type:
- number
buttonPosition :nexacro.EzTitlebar.BUTTON_POS
- Description:
버튼표시위치
버튼표시위치
Type:
buttonSpacing :number
- Description:
버튼 간 간격(px)
버튼 간 간격(px)
Type:
- number
checkboxBodyCellIndex :number
- Description:
체크박스로 만들 bodycell Grid의 특정 index 의 Body Cell을 행 선택용 체크박스로 만듬
EzListCheckBox.set_bodycell 참조
체크박스로 만들 bodycell
Grid의 특정 index 의 Body Cell을 행 선택용 체크박스로 만듬
EzListCheckBox.set_bodycell 참조
Type:
- number
checkboxHeadCellIndex
- Description:
체크박스로 만들 headcell Grid의 특정 index 의 Header Cell을 전체선택용 체크박스로 만듬 EzListCheckBox.set_headcell 참조
체크박스로 만들 headcell Grid의 특정 index 의 Header Cell을 전체선택용 체크박스로 만듬 EzListCheckBox.set_headcell 참조
codecolumn :string
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼의 명칭으로 사용될 칼럼 설정
innerdataset으로 설정된 Dataset 칼럼중 추가버튼의 명칭으로 사용될 칼럼 설정
Type:
- string
Example
var colNm = this.ezTitlebar.codecolumn;
this.ezTitlebar.codecolumn = "CODE";
conditionDiv :string
- Description:
transaction 처리시 파라미터로 사용할 컴포넌트들이 있는 Div 경로
- 넥사크로 툴에서 대상 Div를 선택한 상태로 ctrl + shift + c 를 누르면 복사됩니다.
- Div를 직접 바인딩하려면 setConditionDiv함수를 사용하세요
transaction 처리시 파라미터로 사용할 컴포넌트들이 있는 Div 경로
- 넥사크로 툴에서 대상 Div를 선택한 상태로 ctrl + shift + c 를 누르면 복사됩니다.
- Div를 직접 바인딩하려면 setConditionDiv함수를 사용하세요
Type:
- string
counterFormat :string
- Description:
표시할 문자
- Nexacro의 expr 규칙에 따릅니다.
- expr 내부의 this는 cell 객체입니다.
표시할 문자
- Nexacro의 expr 규칙에 따릅니다.
- expr 내부의 this는 cell 객체입니다.
Type:
- string
Example
var format = this.ezTitlebar.counterFormat;
this.ezTitlebar.counterFormat = "\"[Total <fc v='#438AFE'><b v='true'>\"+(comp.text||0)+\"</b></fc>] \"";
csscolumn :string
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 css로 사용될 칼럼
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 css로 사용될 칼럼
Type:
- string
Example
var colNm = this.ezTitlebar.csscolumn;
this.ezTitlebar.csscolumn = "CSS";
datacolumn :string
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼에 표시할 문자로 사용될 칼럼
innerdataset으로 설정된 Dataset 칼럼중 추가버튼에 표시할 문자로 사용될 칼럼
Type:
- string
Example
var colNm = this.ezTitlebar.datacolumn;
this.ezTitlebar.datacolumn = "DATA";
deleteOnSave :boolean
- Description:
삭제시 즉시 저장 여부
- true일 경우 삭제버튼 누를때 바로 삭제 요청 처리함
- false일 경우 삭제 버튼 누를떄 Dataset에서만 삭제한 뒤, 저장버튼을 누를 때 한번에 요청 처리함
삭제시 즉시 저장 여부
- true일 경우 삭제버튼 누를때 바로 삭제 요청 처리함
- false일 경우 삭제 버튼 누를떄 Dataset에서만 삭제한 뒤, 저장버튼을 누를 때 한번에 요청 처리함
Type:
- boolean
deleteSqlId :string
- Description:
삭제된 데이터 저장시 사용할 SQL ID
삭제된 데이터 저장시 사용할 SQL ID
Type:
- string
enableAddButton :boolean
- Description:
신규버튼 사용가능 여부
신규버튼 사용가능 여부
Type:
- boolean
enableExcelExportButton :boolean
- Description:
엑셀다운로드 버튼 사용가능 여부
엑셀다운로드 버튼 사용가능 여부
Type:
- boolean
enableExcelImportButton :boolean
- Description:
엑셀업로드 버튼 사용가능 여부 설정
엑셀업로드 버튼 사용가능 여부 설정
Type:
- boolean
enableExcelSampleButton :boolean
- Description:
엑셀업로드 샘플 다운로드 버튼 사용가능 여부
엑셀업로드 샘플 다운로드 버튼 사용가능 여부
Type:
- boolean
enablePrintButton :boolean
- Description:
출력 버튼 사용가능 여부
출력 버튼 사용가능 여부
Type:
- boolean
enableRemoveButton :boolean
- Description:
삭제버튼 사용가능 여부
삭제버튼 사용가능 여부
Type:
- boolean
enableSaveButton :boolean
- Description:
저장버튼 사용가능 여부
저장버튼 사용가능 여부
Type:
- boolean
enablecolumn :string
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 사용가능여부로 사용될 칼럼
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 사용가능여부로 사용될 칼럼
Type:
- string
Example
var colNm = this.ezTitlebar.enablecolumn;
this.ezTitlebar.enablecolumn = "ENABLE";
excelExportButtonText :string
- Description:
엑셀다운로드 버튼 텍스트
엑셀다운로드 버튼 텍스트
Type:
- string
excelExportName :string
- Description:
excel export시 파일 명
excel export시 파일 명
Type:
- string
excelImportButtonText :string
- Description:
엑셀업로드 버튼 텍스트 설정
엑셀업로드 버튼 텍스트 설정
Type:
- string
excelSampleButtonText :string
- Description:
엑셀업로드 샘플 다운로드 버튼 텍스트
엑셀업로드 샘플 다운로드 버튼 텍스트
Type:
- string
excelSampleName :string
- Description:
excel 업로드용 sample export시 파일 명
excel 업로드용 sample export시 파일 명
Type:
- string
innerdataset :string
- Description:
추가버튼 정보를 가진 Dataset 명칭
- Dataset을 직접 바인딩 할 경우 setInnerDataset함수를 사용하세요
- 바인딩된 Dataset을 가져올 경우 getInnerDataset함수를 사용하세요
추가버튼 정보를 가진 Dataset 명칭
- Dataset을 직접 바인딩 할 경우 setInnerDataset함수를 사용하세요
- 바인딩된 Dataset을 가져올 경우 getInnerDataset함수를 사용하세요
Type:
- string
Example
var dsNm = this.ezTitlebar.innerdataset;
this.ezTitlebar.innerdataset = "ds_buttons";
insertSqlId :string
- Description:
신규데이터 저장시 사용할 SQL ID
신규데이터 저장시 사용할 SQL ID
Type:
- string
locale :boolean
- Description:
지역코드
지역코드
Type:
- boolean
padding :number
- Description:
패딩
패딩
Type:
- number
Example
var padding = this.ezTitlebar.padding;
this.ezTitlebar.padding = "5px 10px";
printButtonText :string
- Description:
출력 버튼 텍스트
출력 버튼 텍스트
Type:
- string
removeButtonText :string
- Description:
삭제버튼 텍스트
삭제버튼 텍스트
Type:
- string
saveButtonText :string
- Description:
저장버튼 텍스트
저장버튼 텍스트
Type:
- string
saveOpInDsName :string
- Description:
저장시 사용할 opInDs 명칭
해당 Dataset의 내용은 transation 호출 시 칼럼명 별로 값이 배열에 담긴 후 파라미터로 전달 됨
저장시 사용할 opInDs 명칭
해당 Dataset의 내용은 transation 호출 시 칼럼명 별로 값이 배열에 담긴 후 파라미터로 전달 됨
Type:
- string
saveOption :string
- Description:
저장시 사용할 추가 옵션 Trans.insert Trans.update Trans.delete Trans.save 함수 호출시 2 번째 인자로 전달됨
저장시 사용할 추가 옵션 Trans.insert Trans.update Trans.delete Trans.save 함수 호출시 2 번째 인자로 전달됨
Type:
- string
saveOutDsName :string
- Description:
저장 후 결과를 받아올 Dataset 명칭
저장 후 결과를 받아올 Dataset 명칭
Type:
- string
saveParam :string
- Description:
저장시 전달할 추가 파라미터
Nexacro 파라미터 규격을 따름
저장시 전달할 추가 파라미터
Nexacro 파라미터 규격을 따름
Type:
- string
saveParamSqlId :string
- Description:
저장 시 사용될 paramSqlId
- paramSqlId는 파라미터로 사용할 값 조회에 사용될 SQL ID 입니다.
- 요청 처리전 최초 한번 해당 sql이 select one으로 실행한 후, 결과를 파라미터로 추가합니다.
- 사용시에는 #{_SQL_PARAM.명칭} 형태로 사용합니다. Nexacro 파라미터 규격을 따름
저장 시 사용될 paramSqlId
- paramSqlId는 파라미터로 사용할 값 조회에 사용될 SQL ID 입니다.
- 요청 처리전 최초 한번 해당 sql이 select one으로 실행한 후, 결과를 파라미터로 추가합니다.
- 사용시에는 #{_SQL_PARAM.명칭} 형태로 사용합니다. Nexacro 파라미터 규격을 따름
Type:
- string
selectInDsName :string
- Description:
조회시 조회조건으로 사용할 Dataset 명칭
조회시 조회조건으로 사용할 Dataset 명칭
Type:
- string
selectOption :string
- Description:
조회시 사용할 추가 옵션 Trans.search 함수 호출시 2번째 인자로 전달됨
조회시 사용할 추가 옵션 Trans.search 함수 호출시 2번째 인자로 전달됨
Type:
- string
selectParam :string
- Description:
조회시 전달할 추가 파라미터 Nexacro 파라미터 규격을 따름
조회시 전달할 추가 파라미터 Nexacro 파라미터 규격을 따름
Type:
- string
selectParamSqlId :string
- Description:
조회 시 사용될 paramSqlId
- paramSqlId는 파라미터로 사용할 값 조회에 사용될 SQL ID 입니다.
- 요청 처리전 최초 한번 해당 sql이 select one으로 실행한 후, 결과를 파라미터로 추가합니다.
- 사용시에는 #{_SQL_PARAM.명칭} 형태로 사용합니다. Nexacro 파라미터 규격을 따름
조회 시 사용될 paramSqlId
- paramSqlId는 파라미터로 사용할 값 조회에 사용될 SQL ID 입니다.
- 요청 처리전 최초 한번 해당 sql이 select one으로 실행한 후, 결과를 파라미터로 추가합니다.
- 사용시에는 #{_SQL_PARAM.명칭} 형태로 사용합니다. Nexacro 파라미터 규격을 따름
Type:
- string
selectSqlId :string
- Description:
데이터 조회시 사용할 SQL ID
데이터 조회시 사용할 SQL ID
Type:
- string
spacingBetweenTextAndButton :number
- Description:
텍스트와 버튼 사이 간격
텍스트와 버튼 사이 간격
Type:
- number
statCellIndex :number
- Description:
상태값 표시할 bodycell Grid의 특정 index 의 Body Cell을 상태값 표시용 cell로 만듬
상태값 표시할 bodycell Grid의 특정 index 의 Body Cell을 상태값 표시용 cell로 만듬
Type:
- number
targetGrid :string
- Description:
제어 대상 Grid
- Grid를 직접 세팅할 경우 setTargetGrid함수를 사용하세요
제어 대상 Grid
- Grid를 직접 세팅할 경우 setTargetGrid함수를 사용하세요
Type:
- string
text :string
- Description:
표시할 문자 설정
표시할 문자 설정
Type:
- string
updateSqlId :string
- Description:
수정된 데이터 저장시 사용할 SQL ID
수정된 데이터 저장시 사용할 SQL ID
Type:
- string
useAddButton :boolean
- Description:
신규버튼 사용여부
신규버튼 사용여부
Type:
- boolean
useExcelExportButton :boolean
- Description:
엑셀다운로드 버튼 사용여부
엑셀다운로드 버튼 사용여부
Type:
- boolean
useExcelImportButton :boolean
- Description:
엑셀업로드 버튼 사용여부 설정
엑셀업로드 버튼 사용여부 설정
Type:
- boolean
useExcelSampleButton :boolean
- Description:
엑셀업로드 샘플 다운로드 버튼 사용여부
엑셀업로드 샘플 다운로드 버튼 사용여부
Type:
- boolean
useInitButton :boolean
- Description:
초기화버튼 사용여부
초기화버튼 사용여부
Type:
- boolean
useInitButton :boolean
- Description:
초기화버튼 사용여부
초기화버튼 사용여부
Type:
- boolean
useInitButton :string
- Description:
초기화버튼 사용여부
초기화버튼 사용여부
Type:
- string
usePrintButton :boolean
- Description:
출력 버튼 사용여부
출력 버튼 사용여부
Type:
- boolean
useRemoveButton :boolean
- Description:
삭제버튼 사용여부
삭제버튼 사용여부
Type:
- boolean
useSaveButton :boolean
- Description:
저장버튼 사용여부
저장버튼 사용여부
Type:
- boolean
useSorter :boolean
- Description:
정렬기능사용여부
- true일경우 Grid의 Header 영역을 클릭하면 값이 정렬됨
- ctrl키를 누른 상태로 정렬 시 다중 조건으로 정렬됨
정렬기능사용여부
- true일경우 Grid의 Header 영역을 클릭하면 값이 정렬됨
- ctrl키를 누른 상태로 정렬 시 다중 조건으로 정렬됨
Type:
- boolean
visiblecolumn :string
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 표시여부로 사용될 칼럼
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 표시여부로 사용될 칼럼
Type:
- string
Example
var colNm = this.ezTitlebar.visiblecolumn;
this.ezTitlebar.visiblecolumn = "VISIBLE";
(static) BASE_BUTTON :Object
- Description:
기본버튼
Properties:
| Name | Type | Description |
|---|---|---|
INIT |
Object | 초기화버튼 |
SEARCH |
Object | 조회버튼 |
ADD |
Object | 추가버튼 |
REMOVE |
Object | 삭제버튼 |
SAVE |
Object | 저장버튼 |
EXCEL_SAMPLE |
Object | 엑셀 샘플 다운로드 버튼 |
EXCEL_IMPORT |
Object | 엑셀 업로드 버튼 |
EXCEL_EXPORT |
Object | 엑셀 다운로드 버튼 |
PRINT |
Object | 출력 버튼 |
기본버튼
Type:
- Object
(static, readonly) BUTTON_POS :string
- Description:
버튼 배치방향
Properties:
| Name | Type | Description |
|---|---|---|
BOTTOM_LEFT |
string | 하단 좌측 |
BOTTOM_RIGHT |
string | 하단 우측 |
MIDDLE_RIGHT |
string | 중단 우측 |
버튼 배치방향
Type:
- string
(static, readonly) LOG_KEY :string
- Description:
로깅용 키
로깅용 키
Type:
- string
(static) i18nConfig :Object
- Description:
EzTitlebar 내장 다국어 정보 객체
EzTitlebar 내장 다국어 정보 객체
Type:
- Object
Methods
buttonClick(buttonId, skipCheckCanopt)
- Description:
buttonClick 특정 Button을 클릭한다
전 후처리가 모두 실행되며 버튼이 없을경우(미표시)에는 실행되지 않음
Example
this.ezTitlebar.buttonClick("SEARCH");
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
buttonId |
String | 가져올 버튼의 ID 기본 버튼 ID는 nexacro.EzTitlebar.BASE_BUTTON 참조 |
||
skipCheckCan |
Boolean |
<optional> |
false
|
전처리 함수 무시여부 |
callBaseEvent(buttonId)
- Description:
특정 기본 버튼의 이벤트를 실행한다.
전 후처리가 모두 실행되며 버튼이 없을경우에도 실행됨
Example
this.ezTitlebar.callBaseEvent("SEARCH");
Parameters:
| Name | Type | Description |
|---|---|---|
buttonId |
string | 가져올 버튼의 ID 기본 버튼 ID는 EzTitlebar.BASE_BUTTON 참조 |
getButton(buttonId) → {Promise}
- Description:
특정 Button을 return
버튼은 지속적으로 다시그려집니다. 버튼의 속성을 직접 수정하시는것은 삼가시기바랍니다.
Example
var btn = this.ezTitlebar.getButton("SEARCH");
Parameters:
| Name | Type | Description |
|---|---|---|
buttonId |
string | 가져올 버튼의 ID 기본 버튼 ID는 nexacro.EzTitlebar.BASE_BUTTON 참조 |
Returns:
후처리용 Promise 파라미터로 nexacro.ExcelImportEventInfo 를 받음
- Type
- Promise
getCheckBox() → {nexacro.EzGridCheckBox}
- Description:
Titlebar가 가지고있는 EzGridCheckBox 객체를 가져온다
Example
var chk = this.ezTitlebar.getCheckBox();
Returns:
EzGridCheckbox 객체
getInnerDataset() → {nexacro.Dataset}
- Description:
바인딩 되어있는 추가버튼 정보 Dataset getter
Example
var ds = this.ezTitlebar.getInnerDataset();
Returns:
추가버튼 정보를 가진 Dataset
- Type
- nexacro.Dataset
getRememberedRowData() → {Object}
- Description:
임시저장한 데이터를 가져온다.
Example
var data = this.ezTitlebar.getRememberedRowData();
Returns:
임시 저장한 데이터
- Type
- Object
getSorter() → {EzSorter}
- Description:
Titlebar가 가지고있는 EzSorter 객체를 가져온다
Example
var sorter = this.ezTitlebar.getSorter();
Returns:
EzSorter 객체
- Type
- EzSorter
onadd() → {Object}
- Description:
행 추가 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var info = this.ezTitlebar.onadd();
Returns:
행 추가 정보
- Type
- Object
onexcelexport() → {Promise}
- Description:
엑셀 다운로드 처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onexcelexport();
Returns:
엑셀 다운로드 처리 결과 Promise
- Type
- Promise
onexcelimport() → {Promise}
- Description:
엑셀 Import 처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onexcelimport();
Returns:
엑셀 import 처리 결과 Promise
- Type
- Promise
onexcelsampleexport() → {Promise}
- Description:
엑셀 샘플 다운로드 처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onexcelsampleexport();
Returns:
다운로드 처리 결과 Promise
- Type
- Promise
oninit()
- Description:
초기화 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
this.ezTitlebar.oninit();
onremove() → {Promise}
- Description:
삭제처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onremove();
Returns:
삭제 처리 결과 Promise
- Type
- Promise
onsave() → {Promise}
- Description:
저장처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onsave();
Returns:
저장 처리 결과 Promise
- Type
- Promise
onsearch() → {Promise}
- Description:
조회처리 함수, 직접 호출할 경우, 전/후처리가 무시됨 (필요한 경우 Override 할 것)
Example
var prom = this.ezTitlebar.onsearch();
Returns:
조회 결과 Promise
- Type
- Promise
rememberRowData(rowposition)
- Description:
targetDatast의 특정 행의 정보를 맵 형태로 임시저장한다.
Example
this.ezTitlebar.rememberRowData(1);
Parameters:
| Name | Type | Description |
|---|---|---|
rowposition |
number | 임시저장할 행 |
rowCounting()
- Description:
row 표시용 static의 내용을 강제갱신한다.
Example
this.ezTitlebar.rowCounting();
setButtonEnable(buttonId, enable)
- Description:
특정 Button을 enable처리
Example
this.ezTitlebar.setButtonEnable("SEARCH");
Parameters:
| Name | Type | Description |
|---|---|---|
buttonId |
string | 가져올 버튼의 ID 기본 버튼 ID는 EzTitlebar.BASE_BUTTON 참조 |
enable |
boolean | 사용가능여부 |
setButtonText(buttonId, text)
- Description:
특정 Button의 문자 변경
Example
this.ezTitlebar.setButtonText("SEARCH", 'TEXT(TEST_CODE)');
Parameters:
| Name | Type | Description |
|---|---|---|
buttonId |
string | 가져올 버튼의 ID 기본 버튼 ID는 EzTitlebar.BASE_BUTTON 참조 |
text |
string | Text |
setButtonVisible(buttonId, visible)
- Description:
특정 Button을 표시/해제처리
Example
this.ezTitlebar.setButtonVisible("SEARCH", true);
Parameters:
| Name | Type | Description |
|---|---|---|
buttonId |
string | 가져올 버튼의 ID 기본 버튼 ID는 EzTitlebar.BASE_BUTTON 참조 |
visible |
boolean | 표시여부 |
setConditionDiv(div)
- Description:
transaction 처리시 파라미터로 사용할 컴포넌트들이 있는 Div를 설정
Example
this.ezTitlebar.setConditionDiv(this.Div00);
Parameters:
| Name | Type | Description |
|---|---|---|
div |
nexacro.Div | 파라미터로 사용할 컴포넌트들이 있는 Div |
setExcelExportInfo(option)
- Description:
excel export시 사용할 커스텀 옵션 설정
Example
this.ezTitlebar.setExcelExportInfo(option);
Parameters:
| Name | Type | Description |
|---|---|---|
option |
Object | Excel export 옵션 여기를 참조 |
setExcelImportInfo(option)
- Description:
excel import시 사용할 커스텀 옵션
Example
this.ezTitlebar.setExcelImportInfo(option);
Parameters:
| Name | Type | Description |
|---|---|---|
option |
Object | Excel import 옵션 여기를 참조 |
setExcelSampleGrid(grd)
- Description:
엑셀 다운로드 샘플용 Grid를 설정
Example
this.ezTitlebar.setExcelSampleGrid(this.Grid01);
Parameters:
| Name | Type | Description |
|---|---|---|
grd |
nexacro.Grid | 엑셀 다운로드 샘플용 Grid |
setInnerDataset(ds)
- Description:
추가버튼 정보를 가진 Dataset을 설정
Example
this.ezTitlebar.setInnerDataset(this.ds_buttons);
Parameters:
| Name | Type | Description |
|---|---|---|
ds |
nexacro.Dataset | 추가버튼 정보를 가진 Dataset |
setTargetDataset(ds)
- Description:
제어대상 Dataset을 설정합니다
미설정시 targetGrid의 binddataset이 설정됩니다.
Example
this.ezTitlebar.setTargetDataset(this.ds_buttons);
Parameters:
| Name | Type | Description |
|---|---|---|
ds |
nexacro.Dataset | 제어대상 Dataset |
setTargetGrid(grd)
- Description:
제어 대상 Grid를 설정
Example
this.ezTitlebar.setTargetGrid(this.Grid00);
Parameters:
| Name | Type | Description |
|---|---|---|
grd |
nexacro.Grid | 제어 대상 Grid |
set_action(actionopt)
- Description:
transaction 요청시 사용할 datasource 설정
Example
this.ezTitlebar.set_action("basic");
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
action |
string |
<optional> |
"basic"
|
transaction 요청시 사용할 datasource 명 |
set_addButtonText(addButtonText)
- Description:
신규버튼 텍스트 설정
Example
this.ezTitlebar.set_addButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
addButtonText |
string | 신규버튼 텍스트 |
set_buttonHeight(buttonHeight)
- Description:
버튼 높이
Example
this.ezTitlebar.set_buttonHeight(30);
Parameters:
| Name | Type | Description |
|---|---|---|
buttonHeight |
number | 버튼 높이(px) |
set_buttonMargin(buttonMargin)
- Description:
버튼 좌우 여백 설정
Example
this.ezTitlebar.set_buttonMargin(10);
Parameters:
| Name | Type | Description |
|---|---|---|
buttonMargin |
number | 버튼 좌우 여백(px) |
set_buttonMinWidth(buttonMinWidth)
- Description:
버튼 최소 넓이 설정
Example
this.ezTitlebar.set_buttonMinWidth(60);
Parameters:
| Name | Type | Description |
|---|---|---|
buttonMinWidth |
number | 버튼 최소 넓이(px) |
set_buttonSpacing(buttonSpacing)
- Description:
버튼 간 간격 설정
Example
this.ezTitlebar.set_buttonSpacing(10);
Parameters:
| Name | Type | Description |
|---|---|---|
buttonSpacing |
number | 버튼 간 간격(px) |
set_checkboxHeadCellIndex(checkboxHeadCellIndex)
- Description:
Grid의 특정 index 의 Header Cell을 전체선택용 체크박스로 만듬 EzListCheckBox.set_headcell 참조
Example
this.ezTitlebar.set_checkboxHeadCellIndex(0);
Parameters:
| Name | Type | Description |
|---|---|---|
checkboxHeadCellIndex |
number | 체크박스로 만들 headcell |
set_codecolumn(codecolumn)
- Description:
innerdataset으로 설정된 Dataset칼럼중 추가버튼의 명칭으로 사용될 칼럼 설정
Example
this.ezTitlebar.set_codecolumn("CODE");
Parameters:
| Name | Type | Description |
|---|---|---|
codecolumn |
string | 추가버튼의 명칭으로 사용될 칼럼 |
set_conditionDiv(conditionDiv)
- Description:
transaction 처리시 파라미터로 사용할 컴포넌트들이 있는 Div 경로 설정
Example
this.ezTitlebar.set_conditionDiv("Div00");
Parameters:
| Name | Type | Description |
|---|---|---|
conditionDiv |
string | transaction 처리시 파라미터로 사용할 컴포넌트들이 있는 Div 경로
|
set_csscolumn(csscolumn)
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼에 css로 사용될 칼럼 설정
Example
this.ezTitlebar.set_csscolumn("CSS");
Parameters:
| Name | Type | Description |
|---|---|---|
csscolumn |
string | 추가버튼 css 칼럼 |
set_datacolumn(datacolumn)
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼에 표시할 문자로 사용될 칼럼 설정
Example
this.ezTitlebar.set_datacolumn("DATA");
Parameters:
| Name | Type | Description |
|---|---|---|
datacolumn |
string | 추가버튼에 표시할 문자로 사용될 칼럼 |
set_deleteSqlId(deleteSqlId)
- Description:
삭제된 데이터 저장시 사용할 SQL ID 설정
Example
this.ezTitlebar.set_deleteSqlId("sample.d01");
Parameters:
| Name | Type | Description |
|---|---|---|
deleteSqlId |
string | 삭제된 데이터 저장시 사용할 SQL ID |
set_enableAddButton(enableAddButton)
- Description:
신규버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableAddButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableAddButton |
boolean | 신규버튼 사용가능 여부 |
set_enableExcelExportButton(enableExcelExportButton)
- Description:
엑셀다운로드 버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableExcelExportButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableExcelExportButton |
boolean | 엑셀다운로드 버튼 사용가능 여부 |
set_enableExcelImportButton(enableExcelImportButton)
- Description:
엑셀업로드 버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableExcelImportButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableExcelImportButton |
boolean | 엑셀업로드 버튼 사용가능 여부 |
set_enableExcelSampleButton(enableExcelSampleButton)
- Description:
엑셀업로드 샘플 다운로드 버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableExcelSampleButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableExcelSampleButton |
boolean | 엑셀업로드 샘플 다운로드 버튼 사용가능 여부 |
set_enableInitButton(enableInitButton)
- Description:
초기화버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableInitButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableInitButton |
boolean | 초기화버튼 사용가능 여부 |
set_enablePrintButton(enablePrintButton)
- Description:
출력 버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enablePrintButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enablePrintButton |
boolean | 출력 버튼 사용가능 여부 |
set_enableRemoveButton(enableRemoveButton)
- Description:
삭제버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableRemoveButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableRemoveButton |
boolean | 삭제버튼 사용가능 여부 |
set_enableSaveButton(enableSaveButton)
- Description:
저장버튼 사용가능 여부 설정
Example
this.ezTitlebar.set_enableSaveButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
enableSaveButton |
boolean | 저장버튼 사용가능 여부 |
set_enablecolumn(enablecolumn)
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 사용가능여부로 사용될 칼럼 설정
Example
this.ezTitlebar.set_enablecolumn("ENABLE");
Parameters:
| Name | Type | Description |
|---|---|---|
enablecolumn |
string | 추가버튼 사용가능여부 칼럼 |
set_excelExportButtonText(excelExportButtonText)
- Description:
엑셀다운로드 버튼 텍스트 설정
Example
this.ezTitlebar.set_excelExportButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
excelExportButtonText |
string | 엑셀다운로드 버튼 텍스트 |
set_excelExportName(excelExportName)
- Description:
excel export시 파일 명 설정
Example
this.ezTitlebar.set_excelExportName("TestFile");
Parameters:
| Name | Type | Description |
|---|---|---|
excelExportName |
string | excel export시 파일 명 |
set_excelImportButtonText(excelImportButtonText)
- Description:
엑셀업로드 버튼 텍스트 설정
Example
this.ezTitlebar.set_excelImportButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
excelImportButtonText |
string | 엑셀업로드 버튼 텍스트 |
set_excelSampleButtonText(excelSampleButtonText)
- Description:
엑셀업로드 샘플 다운로드 버튼 텍스트 설정
Example
this.ezTitlebar.set_excelSampleButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
excelSampleButtonText |
string | 엑셀업로드 샘플 다운로드 버튼 텍스트 |
set_excelSampleGrid(excelSampleGrid)
- Description:
엑셀 다운로드 샘플용 Grid 경로 설정
Example
this.ezTitlebar.set_excelSampleGrid("Grid01");
Parameters:
| Name | Type | Description |
|---|---|---|
excelSampleGrid |
String | 엑셀 다운로드 샘플용 Grid 경로
|
set_excelSampleName(excelSampleName)
- Description:
excel 업로드용 sample export시 파일 명 설정
Example
this.ezTitlebar.set_excelSampleName("SampleFile");
Parameters:
| Name | Type | Description |
|---|---|---|
excelSampleName |
string | excel 업로드용 sample export시 파일 명 |
set_initButtonText(initButtonText)
- Description:
초기화버튼 텍스트 설정
Example
this.ezTitlebar.set_initButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
initButtonText |
string | 초기화버튼 텍스트 |
set_innerdataset(innerdataset)
- Description:
추가버튼 정보를 가진 Dataset 명칭 설정
- Dataset을 직접 바인딩 할 경우 setInnerDataset함수를 사용하세요
Example
this.ezTitlebar.set_innerdataset("ds_buttons");
Parameters:
| Name | Type | Description |
|---|---|---|
innerdataset |
string | 추가버튼 정보를 가진 Dataset 명칭 |
set_insertSqlId(insertSqlId)
- Description:
신규데이터 저장시 사용할 SQL ID 설정
Example
this.ezTitlebar.set_insertSqlId("sample.i01");
Parameters:
| Name | Type | Description |
|---|---|---|
insertSqlId |
string | 신규데이터 저장시 사용할 SQL ID |
set_locale(locale)
- Description:
지역코드 설정
Example
this.ezTitlebar.set_locale("ko_KR");
Parameters:
| Name | Type | Description |
|---|---|---|
locale |
boolean | 지역코드 |
set_padding(padding)
- Description:
패딩 설정
Example
this.ezTitlebar.set_padding("5px 10px");
Parameters:
| Name | Type | Description |
|---|---|---|
padding |
number | 패딩 |
set_printButtonText(printButtonText)
- Description:
출력 버튼 텍스트 설정
Example
this.ezTitlebar.set_printButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
printButtonText |
string | 출력 버튼 텍스트 |
set_removeButtonText(removeButtonText)
- Description:
삭제버튼 텍스트 설정
Example
this.ezTitlebar.set_removeButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
removeButtonText |
string | 삭제버튼 텍스트 |
set_saveButtonText(saveButtonText)
- Description:
저장버튼 텍스트 설정
Example
this.ezTitlebar.set_saveButtonText(true);
Parameters:
| Name | Type | Description |
|---|---|---|
saveButtonText |
string | 저장버튼 텍스트 |
set_saveOpInDsName(saveOpInDsName)
- Description:
저장시 사용할 opInDs 명칭 설정
Example
this.ezTitlebar.set_saveOpInDsName("ds_option");
Parameters:
| Name | Type | Description |
|---|---|---|
saveOpInDsName |
string | 저장시 사용할 opInDs 명칭 |
set_saveOption(saveOption)
- Description:
저장시 사용할 추가 옵션 설정
Example
var option = this.ezTitlebar.saveOption;
this.ezTitlebar.set_saveOption("NOSESSION");
Parameters:
| Name | Type | Description |
|---|---|---|
saveOption |
string | 조회시 사용할 추가 옵션 Trans.insert Trans.update Trans.delete Trans.save 함수 호출시 2 번째 인자로 전달됨 |
set_saveOutDsName(saveOutDsName)
- Description:
저장 후 결과를 받아올 Dataset 명칭 설정
Example
var dsNm = this.ezTitlebar.saveOutDsName;
this.ezTitlebar.set_saveOutDsName("ds_out");
Parameters:
| Name | Type | Description |
|---|---|---|
saveOutDsName |
string | 저장 후 결과를 받아올 Dataset 명칭 |
set_saveParam(saveParam)
- Description:
저장시 전달할 추가 파라미터 설정
Example
this.ezTitlebar.set_saveParam("CD='0000' CD_NM='TEST'");
Parameters:
| Name | Type | Description |
|---|---|---|
saveParam |
string | 저장시 전달할 추가 파라미터 |
set_saveParamSqlId(paramSqlId)
- Description:
저장 시 사용될 paramSqlId 설정 Nexacro 파라미터 규격을 따름
Example
this.ezTitlebar.set_saveParamSqlId("example.s01");
Parameters:
| Name | Type | Description |
|---|---|---|
paramSqlId |
string | 저장 시 사용될 paramSqlId
|
set_selectInDsName(selectInDsName)
- Description:
조회시 조회조건으로 사용할 Dataset 명칭 설정
Example
this.ezTitlebar.set_selectInDsName("ds_param");
Parameters:
| Name | Type | Description |
|---|---|---|
selectInDsName |
string | 조회시 조회조건으로 사용할 Dataset |
set_selectOpInDsName(selectOpInDsName)
- Description:
조회시 사용할 opInDs 명칭 설정
Example
this.ezTitlebar.set_selectOpInDsName("ds_option");
Parameters:
| Name | Type | Description |
|---|---|---|
selectOpInDsName |
string | 조회시 사용할 opInDs 명칭 |
set_selectOption(selectOption)
- Description:
조회시 사용할 추가 옵션 설정
Example
var option = this.ezTitlebar.selectOption;
this.ezTitlebar.set_selectOption("NOSESSION");
Parameters:
| Name | Type | Description |
|---|---|---|
selectOption |
string | 조회시 사용할 추가 옵션 Trans.search 함수 호출시 2 번째 인자로 전달됨 |
set_selectParam(selectParam)
- Description:
조회시 전달할 추가 파라미터 설정
Example
var param = this.ezTitlebar.selectParam;
this.ezTitlebar.set_selectParam("CD='0000' CD_NM='TEST'");
Parameters:
| Name | Type | Description |
|---|---|---|
selectParam |
string | 조회시 전달할 추가 파라미터 |
set_selectParamSqlId(paramSqlId)
- Description:
조회 시 사용될 paramSqlId 설정 Nexacro 파라미터 규격을 따름
Example
this.ezTitlebar.set_selectParamSqlId("example.s01");
Parameters:
| Name | Type | Description |
|---|---|---|
paramSqlId |
string | 조회 시 사용될 paramSqlId
|
set_selectSqlId(selectSqlId)
- Description:
데이터 조회시 사용할 SQL ID 설정
Example
this.ezTitlebar.set_selectSqlId("sample.s01");
Parameters:
| Name | Type | Description |
|---|---|---|
selectSqlId |
string | 데이터 조회시 사용할 SQL ID |
set_spacingBetweenTextAndButton(spacingBetweenTextAndButton)
- Description:
텍스트와 버튼 사이 간격 설정
Example
this.ezTitlebar.set_spacingBetweenTextAndButton(5);
Parameters:
| Name | Type | Description |
|---|---|---|
spacingBetweenTextAndButton |
number | 텍스트와 버튼 사이 간격 |
set_statCellIndex(statCellIndex)
- Description:
Grid의 특정 index 의 Body Cell을 상태값 표시용 cell로 만듬
Example
this.ezTitlebar.set_statCellIndex(0);
Parameters:
| Name | Type | Description |
|---|---|---|
statCellIndex |
number | 상태값 표시할 bodycell |
set_targetGrid(targetGrid)
- Description:
제어 대상 Grid 명칭 설정
- Grid를 직접 세팅할 경우 setTargetGrid함수를 사용하세요
Example
this.ezTitlebar.set_targetGrid("Grid00");
Parameters:
| Name | Type | Description |
|---|---|---|
targetGrid |
string | 제어 대상 Grid |
set_text(text)
- Description:
표시할 문자 설정
Example
this.ezTitlebar.set_text("목록");
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | 표시할 문자 |
set_updateSqlId(updateSqlId)
- Description:
수정된 데이터 저장시 사용할 SQL ID 설정
Example
this.ezTitlebar.set_updateSqlId("sample.u01");
Parameters:
| Name | Type | Description |
|---|---|---|
updateSqlId |
string | 수정된 데이터 저장시 사용할 SQL ID |
set_useAddButton(useAddButton)
- Description:
신규버튼 사용여부 설정
Example
this.ezTitlebar.set_useAddButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useAddButton |
boolean | 신규버튼 사용여부 |
set_useExcelExportButton(useExcelExportButton)
- Description:
엑셀다운로드 버튼 사용여부 설정
Example
this.ezTitlebar.set_useExcelExportButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useExcelExportButton |
boolean | 엑셀다운로드 버튼 사용여부 |
set_useExcelImportButton(useExcelImportButton)
- Description:
엑셀업로드 버튼 사용여부 설정
Example
this.ezTitlebar.set_useExcelImportButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useExcelImportButton |
boolean | 엑셀업로드 버튼 사용여부 |
set_useExcelSampleButton(useExcelSampleButton)
- Description:
엑셀업로드 샘플 다운로드 버튼 사용여부 설정
Example
this.ezTitlebar.set_useExcelSampleButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useExcelSampleButton |
boolean | 엑셀업로드 샘플 다운로드 버튼 사용여부 |
set_useInitButton(useInitButton)
- Description:
초기화버튼 사용여부 설정
Example
this.ezTitlebar.set_useInitButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useInitButton |
boolean | 초기화버튼 사용여부 |
set_usePrintButton(usePrintButton)
- Description:
출력 버튼 사용여부 설정
Example
this.ezTitlebar.set_usePrintButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
usePrintButton |
boolean | 출력 버튼 사용여부 |
set_useRemoveButton(useRemoveButton)
- Description:
삭제버튼 사용여부 설정
Example
this.ezTitlebar.set_useRemoveButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useRemoveButton |
boolean | 삭제버튼 사용여부 |
set_useSaveButton(useSaveButton)
- Description:
저장버튼 사용여부 설정
Example
this.ezTitlebar.set_useSaveButton(true);
Parameters:
| Name | Type | Description |
|---|---|---|
useSaveButton |
boolean | 저장버튼 사용여부 |
set_visiblecolumn(visiblecolumn)
- Description:
innerdataset으로 설정된 Dataset 칼럼중 추가버튼 표시여부로 사용될 칼럼 설정
Example
this.ezTitlebar.set_visiblecolumn("VISIBLE");
Parameters:
| Name | Type | Description |
|---|---|---|
visiblecolumn |
string | 추가버튼 표시여부 칼럼 |