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

Use label for generating id #1776

Closed
ripla opened this issue May 16, 2018 · 0 comments
Closed

Use label for generating id #1776

ripla opened this issue May 16, 2018 · 0 comments
Assignees
Milestone

Comments

@ripla
Copy link
Contributor

ripla commented May 16, 2018

When connecting an element to Java,
I want to see meaningful names for the java fields,
so that I can better use the fields in my Java app

Use label attribute to try and generate a better field name when connecting to Java. The used attribute must contain a valid Java field name.

Scenarios

Label used for Java field name when Id is not set

Given a new Flow template with a "vaadin-button"
And the vaadin-button "id" attribute value is empty
And the vaadin-button "label" attribute value is "barfoo"
When the user connects the "vaadin-button" to Java
Then the Java companion file contains "private Button barfoo"
And the vaadin-button "id" attribute value is "barfoo"
@ripla ripla changed the title Use id or label for generating id Use label for generating id May 17, 2018
@anssit anssit self-assigned this May 18, 2018
@szolo szolo assigned tanbt and qtdzz and unassigned tanbt May 21, 2018
@ripla ripla added this to the 3.0.2 milestone May 24, 2018
@ripla ripla closed this as completed May 24, 2018
@ripla ripla removed the backlog label Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants