Show Table of Contents
C.4. ユーザーインターフェースプラグインのデプロイメント例
以下の手順に従って、Red Hat Enterprise Virtualization Manager 管理ポータルへのサインイン時に
Hello World! プログラムを実行するユーザーインターフェースプラグインを作成します。
手順C.2 Hello World! プラグインのデプロイ
- Manager の
/usr/share/ovirt-engine/ui-plugins/helloWorld.jsonに以下のファイルを作成して、プラグイン記述子を作成します。{ "name": "HelloWorld", "url": "/ovirt-engine/webadmin/plugin/HelloWorld/start.html", "resourcePath": "hello-files" } - Manager の
/usr/share/ovirt-engine/ui-plugins/hello-files/start.htmlに以下のファイルを作成して、プラグインのホストページを作成します。<!DOCTYPE html><html><head> <script> var api = parent.pluginApi('HelloWorld'); api.register({ UiInit: function() { window.alert('Hello world'); } }); api.ready(); </script> </head><body></body></html>
Hello World! プラグインの実装が正常に完了すると、管理ポータルへのサインイン時には以下のメッセージが画面が表示されます。

図C.1 Hello World! プラグインの実装完了

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.