Skip to content

PluginSuggestionComponent.renderBanner method

PluginSuggestionComponent › renderBanner

Renders the suggestion banner into a settings-tab container, with a button that installs and enables the suggested plugin.

Renders nothing when the suggested plugin is already enabled. Unlike the notice, the banner ignores a previous decline — the user is looking at these settings right now, which is a fresher signal than an answer they gave earlier.

Signature:

renderBanner(containerEl: HTMLElement): void

Parameters:

ParameterTypeDescription
containerElHTMLElementThe element to render the banner into.

Returns: void