Angular erouse@naver.com
페이지 정보
작성자 erouse 작성일 2020-09-24 13:52 조회 3,812회 댓글 0건본문
관련링크
wijmoGrid 내에 첨부된 이미지 파일을 엑셀다운로드를 할때 엑셀에서 볼 수 있는 방법을 알고 싶습니다.
html
<div class="col-lg-12 col-md-12 col-sm-12">
<wj-flex-grid control="wijmoGrid"
items-source="wijmoData"
style="height:750px;"
sorted-column="sortedColumn(s,e)"
initialized="initwj(s,e)"
is-read-only="true"
>
<wj-flex-grid-column header="사진" binding="A1" align="center" width="150" is-read-only="true" style="line-height: 4;">
<img style = "max-width: 145px; max-height:145px;"
ngf-src="IMG[$item.AKDCDE]"
ngf-accept="'image/*'"
ngf-default-src="{{!IMG[$item.AKDCDE]?ksosAppInfo.contextPath+'/resources/app/assets/img/placeholder.svg':IMG[$item.AKDCDE]}}"
class="" >
</wj-flex-grid-column>
....
angular.js
$scope.exportExcel = function(){
var gridControl = ""
, excelFileName = "";
if($scope.wijmoData.totalItemCount < 1){
alert("엑셀 다운로드 할 데이터가 없습니다");
return;
}
excelFileName = "EDU센터 인사정보_" + gfn_getToday() + ".xlsx";
gridControl = $scope.wijmoGrid;
wijmo.grid.xlsx.FlexGridXlsxConverter.save(gridControl, {includeColumnHeaders:true, includeCellStyles:false}, excelFileName);
}
댓글목록
등록된 댓글이 없습니다.