zohoprojects.invoke('modal.create',modal_location);
| 引数名 | データ型 | 説明 |
| operation | string | 'modal.create' - モーダルボックスを作成または開きます。 |
| modal_location | Object | 呼び出す必要がある HTML ファイルの相対パス。例: {'url':'/app/choosefiles.html'}; |
ウィジェット ID と文字列定数が出力として返されます。
zohoprojects.invoke('modal.close',modalInfo.widgetID);
| 引数名 | データ型 | 説明 |
| operation | string | 'modal.close' - 開いているモーダルボックスを閉じます。 |
| widgetID | Object | 'modal.create' の出力として返された widgetID を指定します。 |
拡張機能の iframe インスタンスを指定したサイズに変更します。
zohoprojects.invoke('modal.resize', resize_modal);
| 引数名 | データ型 | 説明 |
| action | string | 'modal.resize' - モーダルボックスのデフォルトサイズを拡大します。 |
| resize_modal | Object | 呼び出す必要がある HTML ファイルの相対パス。例: {'width' : 600, 'height' : 400}; 許可される最小・最大高さ: 380px ~ 450px。 許可される最小・最大幅: 550px ~ 950px。 |
ウィジェット ID と文字列定数が出力として生成されます。
指定した場所でファイルを添付するために開かれた拡張機能の iframe インスタンスを閉じます。
zohoprojects.invoke('attachment_picker.close');
特定のウィジェットのインスタンスを作成します。
zohoprojects.instance(widget_ID);
| 引数名 | データ型 | 説明 |
| ID | string | invoke メソッドによって生成されたウィジェット ID。 |
現在の場所からデータを送信します。
zohoprojects.emit('KeyforMyListener', data);
emit メソッドから送信されたデータを待ち受けて受信します。
zohoprojects.on('KeyforMyListener', data);
var modal_location={'url':'/apps/file.html'};
zohoprojects.invoke('modal.create',modal_location).then(function(modalInfo){
var modalInstance=zohoprojects.instance(modalInfo.widgetID);
modalInstance.on('modal.opened', function(){ /* This code listens for the status 'modal.opened' from the child HTML - file.html */
var data = {org: '1234'};
modalInstance.emit('submit', data);
});/* This code throws a status 'submit' along with an object to the child HTML - file.html*/
modalInstance.on('submitted',function(data){
/*This code listens for a status with the key 'submitted' from the child HTML*/
zohoprojects.invoke('modal.close', modalInfo.widgetID);
});
次のサンプルコードブロックを「差出人」とし、子ファイルを「/apps/file.html」、親ファイルを「/apps/index.html」とします。
var filedetails = {'filename': 'abc'};
zohoprojects.on('submit', function (data) {});
/* このコードは、親ファイル index.html からキー 'submit' のイベントを待ち受けます */
zohoprojects.emit('submitted', filedetails);
/* このコードは、オブジェクトを添えてステータス 'submitted' を親ファイル index.html に送信します */
成功または失敗のアラートを設定して表示します。
zohoprojects.invoke('alert', {
type: 'success', //or 'failure'
data: 'Permission granted successfully'
});
タスクトランジションを完了として設定します。
zohoprojects.invoke('completeTaskTransition');
タスクトランジションのポップアップを閉じます。
zohoprojects.invoke('closeTransition');
「導入したばかりで基本操作や設定に不安がある」、「短期間で集中的に運用開始できる状態にしたい」、「運用を開始しているが再度学び直したい」 といった課題を抱えられているユーザーさまに向けた少人数制のオンライントレーニングです。
日々の営業活動を効率的に管理し、導入効果を高めるための方法を学びましょう。