Flarum (2.x)
    Preparing search index...

    Introduces the page, like the Messages page's hero, and can be dismissed for good, like core's WelcomeHero.

    Type Parameters

    Hierarchy (View Summary)

    Index
    • Defines the child elements that will be rendered within the main container of the hero. Subclasses MUST implement this method to define the specific content of the hero.

      Returns ItemList<Children>

      bodyItems(): ItemList<Mithril.Children> {
      const items = new ItemList<Mithril.Children>();
      items.add('title', <h1>Welcome!</h1>);
      return items;
      }