API リファレンス
Docs Embedをプログラムで使う際に利用できるメソッドについて詳しく学びます
メソッド比較
方法
スタンドアロン スクリプト
NPM パッケージ
React コンポーネント
スタンドアロン スクリプト API
初期化
GitBook('init', options, frameOptions)
GitBook('init', options, frameOptions)ウィジェット制御
ウィジェットを表示
ウィジェットを非表示
ウィンドウを開く
ウィンドウを閉じる
ウィンドウを切り替える
ウィジェットをアンロード
ナビゲーション
GitBook('navigateToPage', path)
GitBook('navigateToPage', path)GitBook('navigateToAssistant')
GitBook('navigateToAssistant')チャット
GitBook('postUserMessage', message)
GitBook('postUserMessage', message)GitBook('clearChat')
GitBook('clearChat')設定
GitBook('configure', settings)
GitBook('configure', settings)NPM パッケージ API
クライアント ファクトリ
createGitBook(options)
createGitBook(options)client.getFrameURL(options)
client.getFrameURL(options)client.createFrame(iframe)
client.createFrame(iframe)フレーム クライアントのメソッド
frame.navigateToPage(path)
frame.navigateToPage(path)frame.navigateToAssistant()
frame.navigateToAssistant()frame.postUserMessage(message)
frame.postUserMessage(message)frame.clearChat()
frame.clearChat()frame.configure(settings)
frame.configure(settings)frame.on(event, listener)
frame.on(event, listener)React コンポーネント API
最終更新
役に立ちましたか?