Skip to content

Conversation

@jmfrancois
Copy link
Contributor

@jmfrancois jmfrancois commented Apr 27, 2017

Please check if the PR fulfills these requirements

  • The commit(s) message(s) follows our
    guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)

If I'm using container ActionsBar it render pure component ActionsBar which render pure Action / Actions or ActionSplitDropdown.
I have no option to use container Action / Actions so I have to re-implement the connection.

What is the new behavior?

The component ActionsBar support for a renderers props which is a mapping of subcomponent used.
The container ActionsBar inject this props with the connected version
screen shot 2017-04-27 at 13 56 53

https://github.com/Talend/ui/wiki/CMF---Container---Components-guidelines


Object.keys(Component).forEach((key) => {
ActionBar[key] = Component[key];
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to keep the attached stuff:
Container's ActionBar.SwitchActions , etc ...

@jmfrancois
Copy link
Contributor Author

:octocat: Demo is available here

@jmfrancois
Copy link
Contributor Author

:octocat: Demo is available here

1 similar comment
@jmfrancois
Copy link
Contributor Author

:octocat: Demo is available here

@jmfrancois
Copy link
Contributor Author

:octocat: Demo is available here

@jmfrancois
Copy link
Contributor Author

:octocat: Demo is available here

@jmfrancois jmfrancois merged commit 5e2d7cc into master May 2, 2017
@jmfrancois jmfrancois deleted the jmfrancois/improve-composition-action branch May 2, 2017 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants