Methods
export(exportInfo) → {Promise}
- Description:
Grid의 내용을 excel파일화 한다.
Example
this.excel.export({
comp : this.Grid00,
fileNm : "test",
delColumns : ["CHK"],
exportHead : "allband",
exportSelect : "allrecord",
exportMerge : "suppress",
exportValue :"allstyle",
exportImage : "none",
exceptStyle : "background",
exportSize : "width",
cfn : "fn_callback"
})
Parameters:
| Name | Type | Description |
|---|---|---|
exportInfo |
EzExcel.ExcelExportInfo | excel export 정보 객체 |
Returns:
후처리용 Promise 파라미터로 nexacro.ExcelExportEventInfo 를 받음
- Type
- Promise
import(importInfo) → {Promise}
- Description:
Excel파일의 내용을 import해 dataset에 반영한다.
Example
this.excel.import({
comp : this.Dataset00,
body : "Sheet1!A2",
columns : {
0 : "COL1",
1 : "COL2",
},
cfn : "fn_callback"
})
Parameters:
| Name | Type | Description |
|---|---|---|
importInfo |
EzExcel.ExcelImportInfo | excel - Import 정보를 담은 Object |
Returns:
후처리용 Promise 파라미터로 nexacro.ExcelImportEventInfo 를 받음
- Type
- Promise
Type Definitions
ExcelExportCfnParam
- Description:
ExcelExport 완료 혹은 실패시 실행될 콜백 함수에 전달될 파라미터의 형식
Properties:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e |
nexacro.ExcelExportEventInfo | export 시도 결과 이벤트 객체 Properties
|
ExcelExport 완료 혹은 실패시 실행될 콜백 함수에 전달될 파라미터의 형식
Type:
- Object
ExcelExportInfo
- Description:
엑셀 Export 옵션 정보
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
comp |
nexacro.Grid | excel로 export할 내용을 담은 컴포넌트 |
||
fileNm |
string |
<optional> |
'untitled'
|
exprot할 파일의 명칭 |
delColumns |
Array.<string> | Array.<number> |
<optional> |
export시 제외할 칼럼명 또는 칼럼 index의 배열 |
|
exportHead |
"allband" | "nohead" | "nosumm" | "nohead,nosumm" |
<optional> |
Grid Head, Summary영역 export방식 설정 exportSelect가 "allrecord"일 경우 default값은 "allband" exportSelect가 "selectrecord"일 경우 default값은 "nohead,nosumm"
|
|
exportSelect |
"allrecord" | "selectrecord" |
<optional> |
"allrecord"
|
Grid 선택영역 export방식 설정
|
exportMerge |
"suppress" | "nosuppress" |
<optional> |
"suppress"
|
suppress 속성이 설정된 cell의 export방식 설정
|
exportValue |
"allstyle" | "selectstyle" |
<optional> |
'allstyle'
|
선택된 영역 출력방식 설정
|
exportImage |
"none" | "url" | "image" |
<optional> |
'none'
|
Cell에 설정된 이미지의 export방식 설정
|
exceptStyle |
"none" | "align" | "background" | "color" | "font" | "border" |
<optional> |
'background,color'
|
export시 제외할 CSS 속성 설정, ","를 구분자로 여러옵션 선택 가능
|
exceptSize |
"width" | "height" | "both" |
<optional> |
'width'
|
cell의 width, height값을 엑셀에 적용할지 여부
|
exportfilepassword |
string | 다운로드시 비밀번호 |
||
cfn |
string |
<optional> |
콜백함수 명, 파라미터양식은 여기를 참조하세요 |
엑셀 Export 옵션 정보
Type:
- Object
Example
{
comp : this.Grid00,
fileNm : "test",
delColumns : ["CHK"],
exportHead : "allband",
exportSelect : "allrecord",
exportMerge : "suppress",
exportValue :"allstyle",
exportImage : "none",
exceptStyle : "background,color",
exportSize : "width",
cfn : "fn_callback"
}
ExcelImportCfnParam
- Description:
ExcelImport 완료 혹은 실패시 실행될 콜백 함수에 전달될 파라미터의 형식
Properties:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
importInfo.cfn.e |
nexacro.ExcelImportEventInfo | import 시도 결과 이벤트 객체 Properties
|
ExcelImport 완료 혹은 실패시 실행될 콜백 함수에 전달될 파라미터의 형식
Type:
ExcelImportInfo
- Description:
엑셀 Import 옵션 정보
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
comp |
nexacro.Dataset | 읽어들인 내용을 반영할 dataset |
||
body |
string |
<optional> |
"Sheet1!A2"
|
excel파일로 부터 읽어올 영역 |
cfn |
string |
<optional> |
콜백함수명, 파라미터양식은 여기를 참조하세요 |
엑셀 Import 옵션 정보
Type:
- Object
Example
{
comp : this.Dataset00,
body : "Sheet1!A2",
columns : {
0 : "COL1",
1 : "COL2",
},
cfn : "fn_callback"
}