선택하여 붙여넣기 기능은 둘 중 하나의 방법으로 사용할 수 있습니다.
ContextMenu: 컨텍스트 메뉴를 열고 선택하여 붙여넣기… 클릭
바로 가기: Ctrl + Alt + V 누르기
"붙여넣기" 명령을 사용하여 특별한 붙여넣기 명령을 실행할 수도 있습니다. 예를 들어 다음과 같습니다.
window.onload = function() {
let spread = new GC.Spread.Sheets.Workbook('ss');
// open sjs
fetch(getFileUrl()).then(res => res.blob()).then(file => spread.open(file));
spread.bind(GC.Spread.Sheets.Events.ValueChanged, function (e, args) {
var sheet = args.sheet, row = args.row, col = args.col;
var cellType = sheet.getCellType(row, col);
if (cellType) {
sheet.options.showFormulas = !!sheet.getValue(row, col);
}
});
};
function getFileUrl () {
return '$DEMOROOT$/spread/source/data/pasteSpecialDemo.sjs';
}
<!doctype html>
<html style="height:100%;font-size:14px;">
<head>
<meta charset="utf-8" />
<meta name="spreadjs culture" content="ko-kr"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets/styles/gc.spread.sheets.excel2013white.css">
<script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets/dist/gc.spread.sheets.all.min.js" type="text/javascript"></script>
<script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets-io/dist/gc.spread.sheets.io.min.js" type="text/javascript"></script>
<script src="$DEMOROOT$/ko/purejs/node_modules/@mescius/spread-sheets-resources-ko/dist/gc.spread.sheets.resources.ko.min.js" type="text/javascript"></script>
<script src="$DEMOROOT$/spread/source/js/license.js" type="text/javascript"></script>
<script src="app.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="sample-tutorial">
<div id="ss" class="sample-spreadsheets"></div>
</div>
</body>
</html>
.sample-tutorial {
position: relative;
height: 100%;
overflow: hidden;
}
.sample-spreadsheets {
width: 100%;
height: 100%;
overflow: hidden;
float: left;
}
.option-row {
font-size: 14px;
padding: 5px;
margin-top: 10px;
}
body {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}