* Sets plugin init function * @param {string} id * @param {() => void} initFunction * @param {{list: import('components/settingsPage').ListItem[], cb: (key: string, value: string)=>void}} settings
(id, initFunction, settings)
| 697 | * @param {{list: import('components/settingsPage').ListItem[], cb: (key: string, value: string)=>void}} settings |
| 698 | */ |
| 699 | setPluginInit(id, initFunction, settings) { |
| 700 | this.#pluginsInit[id] = initFunction; |
| 701 | |
| 702 | if (!settings) return; |
| 703 | appSettings.uiSettings[`plugin-${id}`] = settingsPage( |
| 704 | id, |
| 705 | settings.list, |
| 706 | settings.cb, |
| 707 | undefined, |
| 708 | { |
| 709 | preserveOrder: true, |
| 710 | pageClassName: "detail-settings-page", |
| 711 | listClassName: "detail-settings-list", |
| 712 | valueInTail: true, |
| 713 | groupByDefault: true, |
| 714 | }, |
| 715 | ); |
| 716 | } |
| 717 | |
| 718 | setPluginUnmount(id, unmountFunction) { |
| 719 | this.#pluginUnmount[id] = unmountFunction; |
nothing calls this directly
no outgoing calls
no test coverage detected