Registers column types for Deck. From an extension that supports Deck
optionally, list flarum/deck under optional-dependencies (so Deck loads
first) and only add the extender while it's enabled:
import DeckColumns from 'ext:flarum/deck/forum/extenders/DeckColumns';
// in your extend.ts array:
...('flarum-deck' in flarum.extensions
? [new DeckColumns().add('acme-bookmarks', { ... }, 20)]
: []),
(flarum-webpack-config finds a module's default export with a regex over its
source, comments included, so the usual array export can't be spelled out
here without unregistering this module.)
Prefix keys with your extension's name; they're stored in members' layouts.
Priority orders the add-column modal (Deck's own run from 100 down to 20).
Registers column types for Deck. From an extension that supports Deck optionally, list
flarum/deckunderoptional-dependencies(so Deck loads first) and only add the extender while it's enabled:(flarum-webpack-config finds a module's default export with a regex over its source, comments included, so the usual array export can't be spelled out here without unregistering this module.)
Prefix keys with your extension's name; they're stored in members' layouts. Priority orders the add-column modal (Deck's own run from 100 down to 20).