Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / RenderHookContext

Interface: RenderHookContext

Defined in: admin/src/renderHooks.ts:54

What a hook knows about where it is rendering.

Properties

resource?

optional resource?: string

Defined in: admin/src/renderHooks.ts:56

Slug of the resource being rendered, when there is one.


page?

optional page?: "list" | "record" | "form" | "dashboard"

Defined in: admin/src/renderHooks.ts:58

Which screen: the list, a record, a form, or the dashboard.


recordId?

optional recordId?: string

Defined in: admin/src/renderHooks.ts:60

The record's id, on a record or edit screen.