[comment]: # translation:outdated

[comment]: # aside:3

[comment]: # ({e0e7fbad-7d26eea5})
# ウィジェット

ウィジェットは、ダッシュボードに使用されるZabbixフロントエンドモジュールです。
特に明記されていない限り、すべてのモジュールガイドラインはウィジェットにも適用されます。

ただし、ウィジェットはモジュールとは大きく異なります。ウィジェットを作成するには、次の操作を行います。

- [manifest.jsonファイル](/devel/modules/file_structure/manifest)でタイプ"widget"を指定します ("type": "widget")。
- 少なくとも2つのビューを含めます。1つは [ウィジェットプレゼンテーションモード](/devel/modules/widgets/presentation#widget-view)用、もう1つは [ウィジェット構成モード](/devel/modules/widgets/configuration#widget-configuration-view)用です(example.widget.view.phpとexample.widget.edit.php)。
- ウィジェットプレゼンテーション(WidgetView.php)用の[コントローラー](/devel/modules/widgets/presentation#widget-actions)。
- デフォルトの[ウィジェットクラス](/devel/modules/widgets/configuration)を使用して拡張します。

[comment]: # ({/e0e7fbad-7d26eea5})
