useLinkModelView
Overview
Computes a navigable href and disabled state for a model view action, disabling the link when a required PK is absent.
Signature
useLinkModelView(props)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| props | object | yes | The props. |
props Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | string | |||
| model | string | |||
| pk | string | string[] | |||
| view | string |
Returns
The link model view state.
Source
client/lib/use/useLinkModelView.js:29