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

label attribute not bindable #44

Closed
smashah opened this issue Sep 18, 2018 · 2 comments
Closed

label attribute not bindable #44

smashah opened this issue Sep 18, 2018 · 2 comments

Comments

@smashah
Copy link

smashah commented Sep 18, 2018

I am unable to bind a value to the label attribute.
It is needed from within a dom-repeat of relatively complex vaadin-item element.

When I try to bind to the label attribute, it gets redlined:

screen shot 2018-09-18 at 22 57 31

So when I do this:

screen shot 2018-09-18 at 22 58 00

It results in this:

screen shot 2018-09-18 at 22 58 12

Whereas the expected result is this:

screen shot 2018-09-18 at 22 59 06

@smashah smashah changed the title label element not bindable label attribute not bindable Sep 18, 2018
@web-padawan
Copy link
Member

Hi, as you can see there is no label property on the item, and the attribute should be used.
So please make sure that you are binding to attribute by using proper syntax:

<vaadin-item value="[[wash]]" label$="[[wash.name]]">

@smashah
Copy link
Author

smashah commented Sep 19, 2018

Thank you that fixed it for me.

@smashah smashah closed this as completed Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants