0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ElectronでのjsGridの使いはじめ

Posted at

参考リンク

Electronで空っぽのウィンドウを作成

これは上記リンク(Writing Your First Electron App)で簡単にできます。

  1. ディレクトリ作成
  2. npm init
  3. package.jsonのscriptにstartでelectronを追加
  4. index.htmlを(とりあえずは)適当に書く
  5. "Writing Your First Electron App"内にあるようにJSに記述
  6. npm startで起動

jsGridの埋め込み

これも上記リンク(Getting Started)の通りに進めます。
ダウンロードの場合、css2本とjs1本をindex.htmlに埋め込みます。
とりあえずはサンプルコードをまるっとコピペします。

これでindex.htmlをブラウザで表示するとグリッドを確認できます。
一方、Electronの方はそのままでは表示されません。

ElectronでjQueryを有効にする方法

jsGridのためにjQueryを読み込んでいる直後に以下を追加します。

<script>window.$ = window.jQuery = require('./jquery-3.0.0.min.js');</script>

jQueryのバージョンは適宜変えて。以上で表示されるはず、です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?