kernl API
    Preparing search index...

    Function settingsModule

    • Applets' own settings, the config domain (NAP-CONFIG, D-036). An applet registers a schema and opens the form the host draws; values are kept per applet, across its versions, in the host's storage. The form is a settings.present ask the host draws (D-067). Without a form to draw, or without this module, config is not offered.

      Parameters

      • Optionalpresent: (prompt: SettingsPrompt) => void

        Draws the settings form instead of the host's settings.present renderer.

      Returns KernlModule<"settings">

      The module.

      createKernel({ host: { ...host, asks: { 'settings.present': (ask) => drawSettings(ask.facts) } }, modules: [settingsModule()] });