Flarum (v2.0.0)
    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

    Constructors

    Methods

    • 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;
      }