Auto-generated admin panel for node.js with react ResourceOptions

Interface

ResourceOptions

Members

object | string | boolean | null

Navigation option saying under which menu this resource should be nested in sidebar.

Default to the database name.

You have couple of options:

  • when you set both navigation.name and navigation.icon this resource will be nested under this menu.
  • when you set navigation.name or navigation to a string this resource will be nested under this menu and the icon will come from the database type
  • when you set navigation.icon but leave navigation.name as null this resource will be top level and it will have an icon.
  • when you set navigation to null this resource will be top level, but without the icon
  • when you set navigation to false this resource will be hidden in the navigation
Properties:
Name Type Attributes Description
name string | null <optional>
icon string <optional>

View Source adminjs/src/backend/decorators/resource/resource-options.interface.ts, line 77

Type Definitions