Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Add API to set globalOptions #357

Merged
merged 4 commits into from Jun 10, 2020
Merged

Conversation

alvarezguille
Copy link
Member

Fixes #332

@alvarezguille alvarezguille assigned tulioag and unassigned tulioag Jun 8, 2020
* @return the ChartOptions instance connected to the given UI
*/
public static ChartOptions get(UI ui) {
ChartOptions optioner = ComponentUtil.getData(ui, ChartOptions.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

How about naming the variable options ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Name was legacy from charts 4, but it's internal, done

protected ChartOptions() {
}

JreJsonFactory getJsonFactory() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be private?

Copy link
Member Author

Choose a reason for hiding this comment

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

changed, I tried to use the one from Charts first, then messed it up

@alvarezguille alvarezguille merged commit b1502ce into master Jun 10, 2020
@alvarezguille alvarezguille deleted the 332-restore-chartoptions-api branch June 10, 2020 08:17
manolo pushed a commit to vaadin/flow-components that referenced this pull request Oct 5, 2020
manolo pushed a commit to vaadin/flow-components that referenced this pull request Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add API to set Lang and Global options
2 participants