[{"id":"924e5c0c-0717-4fae-9bbc-0b496941985e","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"22646924-f1ae-4a94-ac8e-e3e8ea2931f2","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"827318c4-10fd-462b-aa96-fab2cff174a9","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"8f626f70-8570-4934-a0e5-fc0ca6584738","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"1029bbcc-399c-42e6-b412-a0437395d2d5","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7e6097ce-e53b-416c-89c8-a3708db50528","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"3d1b1e48-357c-4999-985c-d9422356690a","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"e6cb5248-c20b-4d3e-adaf-b5c547e29548","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"58695f0f-7cb8-4bad-b617-dda90b01f606","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"081f453a-0e9a-4f06-a70b-18085a1f0d81","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"2c1d8bf8-2b69-4b16-bac9-9c46901abb6a","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"a042f416-d318-415c-b294-ed88a5010572","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7a454c88-860a-4e28-b52c-b18bae07dfe8","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"63b1ec03-c852-40ec-860e-f025c5791091","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"6b7d135b-71b4-4af7-828c-b28bf70b8ec7","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"5937193e-fd56-4296-8e32-ba41dba8e564","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"8ed468db-93ce-4cb3-8e2b-3249d9d464a7","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"4169f34f-3e9b-45c1-91bf-41c02c3ad5a4","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"411aa66d-8df8-4466-896a-d8de68cf7066","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7fc8dcfc-27ff-4496-96c2-d92dfe1fb4b2","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"02afd225-87f7-4f6d-8be1-0a303c8beade","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"8040235f-6c53-447e-a7f0-4fe5911e066b","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"0610b0d6-03c7-461b-9dd4-f8d1b1787e7c","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"7919ac2f-121b-447c-82ed-15d13b45df0b","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"1d01b943-eac8-480b-8d85-19bd093c8b3d","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"1f4d1309-e22c-413f-848d-2c0ca8450b0e","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"66d78fb1-e833-4bbf-ac7c-6bdfce9a80b0","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"ed5ad6f1-f5a2-47b8-a915-b185e8471ca3","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"6e9decb7-47f3-4871-81b9-65504bc293f1","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"836dcc3b-2afe-4351-bf9f-bd9e2b0c8510","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"80633614-e86b-4b0b-9129-9f7acab69f6d","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"1aaae15a-3496-43eb-a681-b077034832e4","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"70ce0595-eb94-4eb3-84f6-3a89ab8a4409","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f3e379ff-ca52-44d8-a15e-966f89904220","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"c1228456-1b5c-429d-b231-25c10a2b41cc","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"58e7444a-12e4-4161-81db-0bb54d09eca9","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"f70c6c85-addd-43e7-8e2b-69dfe4a0a2fd","tags":[{"product":null,"links":null,"id":"6c1a6899-1b88-404c-9a73-4a0c6c9090a3","name":"New","color":"Red","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]},{"id":"de70365b-d7c6-4355-a59b-3e77a6a374ae","tags":[{"product":null,"links":null,"id":"2f522515-8c88-4017-855d-905bc4b0ea3c","name":"Upd","color":"Blue","productId":"66a69675-7df9-45b2-867a-4ab2613535fa"}]}]
SpreadJSサブライブラリをロードすることで、すべてのライブラリをロードしなくても特定の機能を使用できます。
機能 | ライブラリ |
---|---|
コア | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js |
計算エンジン | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js |
基本的な計算機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.calcengine.basicfunctions.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js |
高度な計算機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.calcengine.advancedfunctions.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js |
自動マージ | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.automerge.xx.x.x.min.js |
データバインド機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.bindings.xx.x.x.min.js |
ドラッグアンドフィル機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.fill.xx.x.x.min.js |
フィルタ機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.conditionalformatting.xx.x.x.min.js gc.spread.sheets.filter.xx.x.x.min.js |
数式テキストボックス機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.formulatextbox.xx.x.x.min.js |
フローティングオブジェクト機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.floatingobjects.xx.x.x.min.js |
範囲グループ機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.outlines.xx.x.x.min.js |
タッチ操作機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.touch.xx.x.x.min.js |
印刷機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.print.xx.x.x.min.js |
セル型およびカスタムセル型機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.celltypes.xx.x.x.min.js |
セルの状態 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.cellstate.xx.x.x.min.js |
コメント機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.comments.xx.x.x.min.js |
条件付き書式機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.conditionalformatting.xx.x.x.min.js |
データ検証機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.conditionalformatting.xx.x.x.min.js gc.spread.sheets.datavalidation.xx.x.x.min.js |
検索機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.search.xx.x.x.min.js |
スパークライン機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.calcengine.basicfunctions.xx.x.x.min.js gc.spread.calcengine.advancedfunctions.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.sparklines.xx.x.x.min.js |
テーブル機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js(オプション) gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.bindings.xx.x.x.min.js(オプション) gc.spread.sheets.conditionalformatting.xx.x.x.min.js(オプション) gc.spread.sheets.filter.xx.x.x.min.js(オプション) gc.spread.sheets.tables.xx.x.x.min.js |
チャート機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.bindings.xx.x.x.min.js(オプション) gc.spread.sheets.charts.xx.x.x.min.js |
テーブルシート機能 | gc.spread.common.xx.x.x.js gc.spread.calcengine.xx.x.x.js gc.data.xx.x.x.js gc.spread.sheets.core.xx.x.x.js gc.spread.sheets.calcengine.xx.x.x.js gc.spread.sheets.bindings.xx.x.x.js gc.spread.sheets.tables.xx.x.x.js gc.spread.sheets.automerge.xx.x.x.js gc.spread.sheets.cellstate.xx.x.x.js gc.spread.sheets.statusbar.xx.x.x.js gc.spread.sheets.conditionalformatting.xx.x.x.js gc.spread.sheets.filter.xx.x.x.js gc.spread.sheets.tablesheet.xx.x.x.js |
ガントシート機能 | gc.spread.common.xx.x.x.js gc.spread.calcengine.xx.x.x.js gc.data.xx.x.x.js gc.spread.sheets.core.xx.x.x.js gc.spread.sheets.calcengine.xx.x.x.js gc.spread.sheets.bindings.xx.x.x.js gc.spread.sheets.tables.xx.x.x.js gc.spread.sheets.automerge.xx.x.x.js gc.spread.sheets.cellstate.xx.x.x.js gc.spread.sheets.statusbar.xx.x.x.js gc.spread.sheets.conditionalformatting.xx.x.x.js gc.spread.sheets.filter.xx.x.x.js gc.spread.sheets.tablesheet.xx.x.x.js gc.spread.sheets.ganttsheet.xx.x.x.js |
ドラッグマージ機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.dragmerge.xx.x.x.min.js |
アウトライン列機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.outlinecolumn.xx.x.x.min.js |
コンテキストメニュー機能 | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.contextmenu.xx.x.x.min.js gc.spread.sheets.bindings.xx.x.x.min.js(オプション) |
gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.pdf.xx.x.x.min.js | |
スライサーコンポーネント機能 | gc.spread.common.xx.x.x.min.js |
スライサー機能 | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.conditionalformatting.xx.x.x.min.js gc.spread.sheets.filter.xx.x.x.min.js gc.spread.sheets.tables.xx.x.x.min.js gc.spread.sheets.floatingobjects.xx.x.x.min.js gc.spread.sheets.slicers.xx.x.x.min.js |
バーコード | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x..min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.sparklines.xx.x.x.min.js gc.spread.sheets.barcode.xx.x.x.min.js |
ピクチャおよびシェイプ | gc.spread.common.xx.x.x.min.js gc.spread.calcengine.xx.x.x.min.js gc.spread.sheets.calcengine.x.x.x.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.floatingobjects.xx.x.x.min.js gc.spread.sheets.shapes.xx.x.x.min.js |
ハイパーリンク | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.hyperlink.xx.x.x.js |
名前ボックス | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.namebox.xx.x.x.js |
ステータスバー | gc.spread.common.xx.x.x.min.js gc.spread.sheets.core.xx.x.x.min.js gc.spread.sheets.statusbar.xx.x.x.js |
core js は常にロードする必要があります。 関数を使用するには、calcengine jsを最初にロードする必要があります。 calcengine jsは多くの機能によって使用されるため、最初にロードしておきます。ロードされていないjsファイルの関数を使用した場合、この関数は無効になります。
各jsファイルは、メインのSpreadJSスクリプトフォルダの下の、pluggableフォルダに保管されています。
次のサンプルコードは、SpreadJSの基本機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<script>
// Spread.Sheetsの定義とほとんどのUI動作は、Spread.Sheetsコアライブラリ内に定義されています。
window.onload = function () {
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var sheet = spread.getActiveSheet();
sheet.setValue(0, 0, 20);
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
</body>
</html>
次のサンプルコードは、基本的な計算機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable calcengine function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.calcengine.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable calcengine basic function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.calcengine.basicfunctions.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<script>
window.onload = function () {
//コアおよび基本の計算機能は、Spread.Sheets calcライブラリ内にあります。
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var sheet = spread.getActiveSheet();
sheet.setArray(0, 0, [1, 2, 3, 4, 5]);
sheet.setFormula(5, 1, 'SUM(A1,A5)');
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
</body>
</html>
次のサンプルコードは、計算機能と高度な機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>SpreadJS Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.x.x.x.css" rel="stylesheet"/>
<!--SpreadJS pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.x.x.x.min.js"></script>
<!--SpreadJS pluggable calcengine function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.calcengine.x.x.x.min.js"></script>
<!--SpreadJS pluggable calcengine advanced function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.calcengine.advancedfunctions.x.x.x.min.js"></script>
<!--SpreadJS pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.x.x.x.min.js"></script>
<script>
window.onload = function () {
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var activeSheet = spread.getActiveSheet();
activeSheet.setValue(0, 0, 1);
activeSheet.setValue(1, 0, 10);
activeSheet.setValue(2, 0, 7);
activeSheet.setValue(3, 0, 9);
activeSheet.setValue(4, 0, "a1");
activeSheet.setFormula(5, 0, "MAX(A1:A5)");
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
</body>
</html>
次のサンプルコードは、バインド機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable data binding library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.bindings.xx.x.x.min.js"></script>
<script>
window.onload = function () {
//データバインド関連機能はSpread.Sheets bindingライブラリ内にあります。
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var activeSheet = spread.getActiveSheet();
var people = [
{ name: "Albert", isAdult: false, country: "American", website: "albert.com" },
{ name: "Alice", isAdult: true, country: "China", website: "alice.com" },
{ name: "Bob", isAdult: false, country: "Canada", website: "bob.com" }
];
activeSheet.autoGenerateColumns = true;
activeSheet.setDataSource(people);
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
</body>
</html>
次のサンプルコードは、数式テキストボックス機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable calcengine function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.calcengine.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable formula text box function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.formulatextbox.xx.x.x.min.js"></script>
<script>
// 数式テキストボックス機能はSpread.Sheets commentライブラリ内にあります。
window.onload = function () {
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var sheet = spread.getActiveSheet();
sheet.setArray(0, 0, [1, 2, 3, 4, 5]);
var fbx = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(document.getElementById("formulaTextBox"));
fbx.workbook(spread);
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
<input type="text" id="formulaTextBox" />
</body>
</html>
次のサンプルコードは、コメント関数を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable comment library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.comments.xx.x.x.min.js"></script>
<script>
window.onload = function () {
//コメント機能はSpread.Sheets commentライブラリ内にあります。
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var activeSheet = spread.getActiveSheet();
var comment = new GC.Spread.Sheets.Comments.Comment();
comment.text("new comment!");
comment.backColor("yellow");
comment.foreColor("green");
comment.displayMode(GC.Spread.Sheets.Comments.DisplayMode.alwaysShown);
activeSheet.getCell(5,5).comment(comment);
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
<input type="text" id="formulaTextBox" />
</body>
</html>
次のサンプルコードは、フロートオブジェクト機能を使用します。
<!DOCTYPE html>
<html>
<head>
<title>Spread.Sheets Pluggable Sample</title>
<link type="text/css" href="./css/gc.spread.sheets.xx.x.x.css" rel="stylesheet"/>
<!--Spread.Sheets pluggable common function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.common.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable core function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.core.xx.x.x.min.js"></script>
<!--Spread.Sheets pluggable floating objects function library-->
<script type="text/javascript" src="./scripts/modules/gc.spread.sheets.floatingobjects.xx.x.x.min.js"></script>
<script>
window.onload = function () {
//カスタムフローティングオブジェクト/ピクチャ機能はSpread.Sheets floatingobjectライブラリ内にあります。
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var activeSheet = spread.getActiveSheet();
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1", 100, 100, 60, 64);
var btn = document.createElement('button');
btn.style.width = "60px";
btn.style.height = "30px";
btn.innerText = "button";
customFloatingObject.content(btn);
activeSheet.floatingObjects.add(customFloatingObject);
};
</script>
</head>
<body>
<div id="ss" style="width:800px; height:600px; border: 1px solid gray;"></div>
<input type="text" id="formulaTextBox" />
</body>
</html>