7.6.2.61. useAnnotationsModal
Kubernetes リソースのアノテーションを編集するためのモーダルを起動するコールバックを提供するフック。
例
const PodAnnotationsButton = ({ pod }) => {
const { t } = useTranslation();
const launchAnnotationsModal = useAnnotationsModal<PodKind>(pod);
return <button onClick={launchAnnotationsModal}>{t('Edit Pod Annotations')}</button>
}
| パラメーター名 | 説明 |
|---|---|
|
| K8sResourceCommon タイプのオブジェクトのアノテーションを編集するためのリソース。 |
リソースのアノテーションを編集するためのモーダルを起動する関数 を返します。