Interface PluginSignature

utility class to help with autocompletion / documentation in the editor while while defining the signature of custom plugins.

Hierarchy

  • PluginSignature

Properties

Properties

Meta?: {
    Column?: unknown;
    Row?: unknown;
    Table?: unknown;
}

Meta is how plugins can manage per-{table,columns,rows} state, event listeners, and general public API

Type declaration

  • Optional Column?: unknown

    If a plugin has Column meta/state, the shape of that state can be described here

  • Optional Row?: unknown

    If a plugin has Row meta/state, the shape of that state can be described here

  • Optional Table?: unknown

    If a plugin has Table meta/state, the shape of that state can be described here

Options?: {
    Column?: unknown;
    Plugin?: unknown;
}

Type declaration

  • Optional Column?: unknown

    If a plugin has options configurable per column, those can be specified here

    These are passed via the the forColumn API

    headlessTable(this?, {
    // ...
    columns: () => [
    MyPlugin.forColumn(() => {
    // the return value here is this is Signature['Options']['Column']
    return {};
    })
    ]
    })
  • Optional Plugin?: unknown

    If a plugin has options configurable for the whole table, those can be specified here.

    These are passed via the the withOptions API

    headlessTable(this?, {
    // ...
    plugins: [
    MyPlugin.withOptions(() => {
    // the return value here is this is Signature['Options']['Plugin']
    return {};
    })
    ]
    })

Generated using TypeDoc