AshAdmin.Resource (ash_admin v0.4.0) View Source
An Api extension to alter the behavior of a resource in the admin ui.
Table of Contents:
- admin
- form
- field
- form
DSL Docs:
admin
Configure the admin dashboard for a given resource
- form
- field
:name- The proper name to use when this resource appears in the admin interface:actor?- Whether or not this resource can be used as the actor for requests:show_action- The action to use when linking to the resource/viewing a single record. Defaults to the primary read action.:read_actions- A list of read actions that can be used to show resource details. By default, all actions are included:create_actions- A list of create actions that can be create records. By default, all actions are included:update_actions- A list of update actions that can be update records. By default, all actions are included:destroy_actions- A list of destroy actions that can be destroy records. By default, all actions are included:polymorphic_tables- For resources that use ash_postgres's polymorphism capabilities, you can provide a list of tables that should be available to select. These will be added to the list of derivable tables based on scanning all Apis + resources provided to ash_admin.:table_columns- The list of attributes to render on the table view.:format_fields- The list of fields and their formats.:relationship_display_fields- The list of attributes to render when it's shown as a relationship on a datatable
form
Configure the appearance of fields in admin forms.
field
Declare non-default behavior for a specific attribute
Introspection Target:
:name- Required. The name of the field to be modified:type- Required. The type of the value in the form. Usedefaultif you are just specifying field order