Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added InitialClassMixin to be defined after attached event of MaterialWidget #308

Merged
merged 4 commits into from
May 5, 2016

Conversation

kevzlou7979
Copy link
Contributor

Created InitialClassMixin to setInitialClass(String initialClass) and on MaterialWidget - Added a super contructor with params Element and String initialClass to be inject on attached event of each widget.

This will also fixed the problem on GMD integration with Errai errai/errai#170 - Preventing the errai ui to override the style classnames on Widget Injection.

Tested on Demo, Pattern and Starter showcase about the changes. 👍
Tested on gwt-material-errai 👍

Will update also the addins to have the same feature.

@kevzlou7979 kevzlou7979 self-assigned this May 4, 2016
@kevzlou7979 kevzlou7979 added this to the 1.5.1 milestone May 4, 2016
public MaterialWidget(Element element) {
setElement(element);
}

@Override
protected void onLoad() {
super.onLoad();
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was left in by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah sorry

@kevzlou7979 kevzlou7979 merged commit 5f4ec29 into release_1.5.1 May 5, 2016
@kevzlou7979 kevzlou7979 deleted the prestyle_initialization branch June 2, 2016 05:36
@kevzlou7979 kevzlou7979 mentioned this pull request Jul 19, 2018
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.

2 participants