Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title() of inline tool static? #2737

Open
mauritskorse opened this issue Jun 11, 2024 · 0 comments
Open

title() of inline tool static? #2737

mauritskorse opened this issue Jun 11, 2024 · 0 comments

Comments

@mauritskorse
Copy link

Within the docs it says that the title() method for an inline tool should be static. However, it furtunately does not need to bedefined as such, as I would not otherwise be able to use the i18n api (see example below).

Would be good to fix this in the docs.

 export default class myTool  {

    get title() {
        return this.api.i18n.t("my tool");
    }

    constructor({api}) {
        this.api = api;
    }

   //...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant