Skip to content

Commit

Permalink
more resource components (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Aug 23, 2024
1 parent 70c4a08 commit 197175e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/3.0/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,23 @@ self.components = {
}
```

<VersionReq version="3.11.8" /> more components can be replaced. From this version, keys must be strings that match the original component with the exception of those from the snippet above.

Here is a list of all the supported customizable components:

```ruby
self.components = {
"Avo::Views::ResourceIndexComponent": Avo::Custom::ResourceIndexComponent,
"Avo::Views::ResourceShowComponent": "Avo::Custom::ResourceShowComponent",
"Avo::Views::ResourceEditComponent": "Avo::Custom::ResourceEditComponent",
"Avo::Index::GridItemComponent": "Avo::Custom::GridItemComponent",
"Avo::Index::ResourceMapComponent": "Avo::Custom::ResourceMapComponent",
"Avo::Index::ResourceTableComponent": "Avo::Custom::ResourceTableComponent",
"Avo::Index::TableRowComponent": "Avo::Custom::TableRowComponent"
}
```


A resource configured with the example above will start using the declared components instead the default ones.

:::warning
Expand Down

0 comments on commit 197175e

Please sign in to comment.