È possibile passare parametri all'API che crea Community Links?

Ah, e dato che c’è una condizione typeof args === "function", potresti fare subito qualcosa del genere:

api.addCommunitySectionLink((Base) =">
  class CustomLink extends Base {
    get name() {
      return "intersection-navigator";
    }

    get route() {
      return "tag.show";
    }

    get models() {
      return ["tagid"];
    }

    get title() {
      return I18n.t("tag_intersection_navigator.link.title");
    }

    get text() {
      return I18n.t("tag_intersection_navigator.link.text");
    }

  }
);
1 Mi Piace