Hi,
I am trying to migrate my UI Kit 1 Macro Config for my app that has three macros to the new UI Kit approach.
See:
- http://developer.atlassian.com/changelog/#CHANGE-1932
- https://developer.atlassian.com/platform/forge/add-configuration-to-a-macro-with-ui-kit/#add-dynamic-input-values-for-the-pet-s-name-and-age-
But how can I use different Configs for my macros? Currently they all run the same bundled Custom UI frontend. And currently in the UI Kit 1 world I define the config in the manifest.yml like so:
modules:
macro:
- key: macroone
icon: resource:icons;app-logo.svg
resource: customui
resolver:
function: resolver
title: macroone
description: macroone
config:
function: macroOneConfig
export:
function: macroOneExport
- key: macrotwo
icon: resource:icons;app-logo.svg
resource: customui
resolver:
function: resolver
title: macrotwo
description: macrotwo
config:
function: macrotwoConfig
export:
function: macrotwoExport
And I can do in single config.js
backend file something like this:
...
export const renderMacroConfigOne = render(<MacroOneConfig />);
export const renderMacroConfigTwo = render(<MacroTwoConfig />);
And now with UI Kit I have to use:
ReactDOM.render(
<App />,
document.getElementById('root')
);
ForgeReconciler.addConfig(<Config />);
And how do I apply different configs here? Is it possible to use conditionals here?
How can I achieve the same thing with UI Kit?
thanks,
Bernhard
Who decided to merge the config together with the frontend? Why not keep it separate like the Word ADF export still is? …