Flarum (v2.0.0-beta.2)
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    formats: (new () => MentionFormat)[] = []
    mentionables: Record<string, (new (...args: any[]) => MentionableModel)[]> = {}

    Methods

    • Register a new mentionable model to a mention format. Only works if the format has already been registered, and the format allows using multiple mentionables.

      Parameters

      • symbol: string

        The trigger symbol of the format to extend (ex: @).

      • mentionable: new (...args: any[]) => MentionableModel

        The mentionable instance to register. Must extend MentionableModel.

      Returns this