Options for given resource
Usage with TypeScript
import { ResourceOptions } from 'admin-bro'
Members
object
|
object
# actions Optional
List of all actions along with their options
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
show |
Partial.<Action.<RecordActionResponse>> |
<optional> |
|
edit |
Partial.<Action.<RecordActionResponse>> |
<optional> |
|
delete |
Partial.<Action.<RecordActionResponse>> |
<optional> |
|
new |
Partial.<Action.<RecordActionResponse>> |
<optional> |
|
list |
Partial.<Action.<ListActionResponse>> |
<optional> |
|
{...} |
Partial.<Action.<ActionResponse>> |
object
|
string
# parent Optional
Parent element under which resource should be nested in sidebar. Default to the database name.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string |
<optional> |
|
icon |
string |
<optional> |
object
# sort Optional
Default sort property and direction.
Properties:
Name | Type | Description |
---|---|---|
direction |
'asc' | 'desc' | |
sortBy |
string |