Skip to content

Commit

Permalink
Merge branch 'main' of github.com:avo-hq/docs.avohq.io
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Nov 20, 2024
2 parents 7546aea + b3a47b5 commit 7f0f8fb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/3.0/dashboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,21 @@ class Avo::Dashboards::Dashy < Avo::Dashboards::BaseDashboard
end
end
```

<Option name="`self.name`">

`self.name` is what is going to be displayed to the user as the dashboard name.

```ruby
self.name = "Dashy"
```

<VersionReq version="3.14.2" /> `self.name` can be configured using a Proc.

```ruby
self.name = -> { I18n.t("avo.dashboards.dashy.name") }
```

Within this block, you gain access to all attributes of [`Avo::ExecutionContext`](execution-context) along with the `dashboard`.

</Option>

0 comments on commit 7f0f8fb

Please sign in to comment.