Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                	<input type="button" id="exportLoc" value="엑셀 저장"> 
			<div id="sheetarea" style="height: 400px; width: 100%;"></div>

<script>
	var RightTechPath="https://support.qcell.kr/";
</script>
<script  type="text/javascript" src="https://support.qcell.kr/QCELL/qcell.js"></script>
<link rel="stylesheet" type="text/css" href="https://support.qcell.kr/QCELL/theme/fall/css/fall.css">




              
            
!

CSS

              
                
	.align-right{
		text-align : right;
		}
	.align-left{
		text-align : left; 
		}
	.align-center{
		text-align : center; 
		}

			
              
            
!

JS

              
                
		var sampleData1 = [
				{ "province":"강원도", "parkingName":"강동초등학교", "parkingType":"노상","address":"강원도 강릉시 강동면 단경길 20", "latitude":"37.725", "longitude":"128.963", "authorities":"강동초등학교", "phone":"033-645-7268"},
				{"province":"강원도", "parkingName":"강릉초등학교", "parkingType":"노상", "address":" ", "latitude":"37.451", "longitude":"", "authorities":"강릉초등학교", "phone":"033-650-2610"},
				{"province":"강원도", "parkingName":"성덕초등학교", "parkingType":"", "address":"강원도 강릉시 용지로 60", "latitude":"0.000", "longitude":"0.000", "authorities":"성덕초", "phone":"033-640-4193"},
				{"province":"강원도", "parkingName":"송양초등학교", "parkingType":"노외", "address":"강원도 강릉시 성산면 위촌길 198", "latitude":"37.759", "longitude":"128.847", "authorities":"송양초등학교", "phone":"033-644-8990"},
				{"province":"강원도", "parkingName":"신영초등학교", "parkingType":"노상", "address":"강원도 강릉시 주문북로160", "latitude":"37.907", "longitude":"128.822", "authorities":"신영초등학교", "phone":"033-660-6091"},
				{"province":"강원도", "parkingName":"신왕초등학교", "parkingType":"부설", "address":"강원도 강릉시 연곡면 진고개로 2265-11", "latitude":"37.000", "longitude":"128.000", "authorities":"신왕초등학교 행정실", "phone":"033-660-7555" },
				{"province":"강원도", "parkingName":"옥천초등학교운산분교장", "parkingType":"노상", "address":"강원도 강릉시 운산길 79-15", "latitude":"37.731", "longitude":"128.937", "authorities":"옥천초등학교운산분교장", "phone":"033-645-9200"},
				{"province":"강원도", "parkingName":"강릉초등학교", "parkingType":"노상", "address":" ", "latitude":"37.451", "longitude":"", "authorities":"강릉초등학교", "phone":"033-650-2610"},
				{"province":"강원도", "parkingName":"성덕초등학교", "parkingType":"", "address":"강원도 강릉시 용지로 60", "latitude":"0.000", "longitude":"0.000", "authorities":"성덕초", "phone":"033-640-4193"},
				{"province":"강원도", "parkingName":"송양초등학교", "parkingType":"노외", "address":"강원도 강릉시 성산면 위촌길 198", "latitude":"37.759", "longitude":"128.847", "authorities":"송양초등학교", "phone":"033-644-8990"},
				{"province":"강원도", "parkingName":"신영초등학교", "parkingType":"노상", "address":"강원도 강릉시 주문북로160", "latitude":"37.907", "longitude":"128.822", "authorities":"신영초등학교", "phone":"033-660-6091"},
				{"province":"강원도", "parkingName":"신왕초등학교", "parkingType":"부설", "address":"강원도 강릉시 연곡면 진고개로 2265-11", "latitude":"37.000", "longitude":"128.000", "authorities":"신왕초등학교 행정실", "phone":"033-660-7555" },
				{"province":"강원도", "parkingName":"옥천초등학교", "parkingType":"", "address":"강원도 강릉시 수문길25", "latitude":"37.763", "longitude":"128.902", "authorities":"옥천초등학교", "phone":"033-650-6800" },
				{"province":"강원도", "parkingName":"옥천초등학교운산분교장", "parkingType":"노상", "address":"강원도 강릉시 운산길 79-15", "latitude":"37.731", "longitude":"128.937", "authorities":"옥천초등학교운산분교장", "phone":"033-645-9200"}
			];
		
	function createQCELL(){
		QCELL.create({
				id			: "qcell1",
				parentid	: "sheetarea",
				columns		: [
				  	{key: 'province', width: '5%', title: ['시도'], type: "input", styleclassname: {"data": "align-center"}}
		          , {key: "parkingName", title: ["주차장명"], width:'10%', sort: true, resize: true,  styleclassname: {"data": "align-center"}}
		          , {key: "parkingType", title: ["유형"], width:'5%', sort: true,  styleclassname: {"data": "align-center"}}
		          , {key: "address", title: ["주소"], width: '17%', styleclassname: {"data": "align-left"}, resize: true, type: 'textarea'}
		          , {key: "authorities", title: ["관리기관"], width: '30%', styleclassname: {"data": "align-center"}}
				],
				
				rowheader	: "sequence",
				data		: {"input":sampleData1},
				emptymessage: "no data",
	
			});
			
			qcell1 = QCELL.getInstance("qcell1");		
			btnSetting();
	}

	
	function btnSetting(){

		
	QBOX.$("#exportLoc").click(function(){
			qcell1.showProgress();
			
			
			var properties = {
				filename: "개별입수 행정자료 등록 리스트"
			   ,border: true // border 처리
			   ,headershow: true // header 출력
			   ,colwidth: true // col의 width 'px' 적용
			   ,label: true,
				addColumns: columns = [
			    {key: "latitude", width: "100", title: ["위도"], styleclassname:{"data":"align-center"},  position: "3"}
			   ,{key: "longitude", width: "100", title: ["경도"], styleclassname:{"data":"align-left"},position: "4"}
			   ,{key: "phone", width: "120", title: ["휴대폰 번호"], styleclassname:{"data":"align-right"},position: "5"}
			   ],
				textalignclass:{
				center:'align-center',
				left:'align-left',
				right : 'align-right'
				}
			
			};
			qcell1.excelDownload(properties);
			qcell1.hideProgress(1000);
		});

	}

	$(document).ready(function(){
		createQCELL();
	});


              
            
!
999px

Console