Hierarchy

  • ExtensionData

Constructors

Properties

Methods

  • This function registers your settings with Flarum

    It takes either a settings object or a callback.

    Parameters

    Returns ExtensionData

    Example

    .registerSetting({
    setting: 'flarum-flags.guidelines_url',
    type: 'text', // This will be inputted into the input tag for the setting (text/number/etc)
    label: app.translator.trans('flarum-flags.admin.settings.guidelines_url_label')
    }, 15) // priority is optional (ItemList)

Generated using TypeDoc v0.24.8