6장. Front-end plugin wiring
You can configure front-end plugins to customize icons, integrate components at mount points, and provide or replace utility APIs.
6.1. Extending internal icon catalog 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
You can use the internal catalog to fetch icons for configured routes with sidebar navigation menu entry.
Procedure
-
Add a custom icon to the internal icon catalog for use in the menu item of a plugin by using the
appIconsconfiguration as shown in the following example:
# dynamic-plugins-config.yaml
plugins:
- plugin: <plugin_path_or_url>
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
my-plugin: # The plugin package name
appIcons:
- name: fooIcon # The icon catalog name
# (Optional): The set of assets to access within the plugin. If not specified, the system uses the `PluginRoot` module.
module: CustomModule
# (Optional): The actual component name to be rendered as a standalone page. If not specified, the system uses the `default` export.
importName: FooIcon
참고
The package_name key under dynamicPlugins.frontend must match the scalprum.name value in your plugin’s package.json. This ensures your dynamic plugin loads correctly during runtime.